Running the packages needed for my script gives the following messages (some packages I can install other gives an error and I can't figure out what has happened (Session info below):
library("ggrepel")
library(glue)
remove.packages("tidyverse")
Removing package from ‘/Library/Frameworks/R.framework/Versions/4.2/Resources/library’
(as ‘lib’ is unspecified)
library(tidyverse)
Error in library(tidyverse) : there is no package called ‘tidyverse’
library(tidyr)
Error: package or namespace load failed for ‘tidyr’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so, 0x0006): Library not loaded: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so'
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file)
detach("package:tidyr", unload = TRUE)
Error in detach("package:tidyr", unload = TRUE) : invalid 'name' argument
install.packages("tidyverse")
trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.2/tidyverse_1.3.2.tgz'
Content type 'application/x-gzip' length 420896 bytes (411 KB)
==================================================
downloaded 411 KB
The downloaded binary packages are in
/var/folders/mm/c9c1scj14y9gpcvdm1kv8dhc0000gn/T//Rtmp4DblEF/downloaded_packages
library(tidyverse)
Error: package or namespace load failed for ‘tidyverse’ in dyn.load(file, DLLpath = DLLpath, ...):
unable to load shared object '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so, 0x0006): Library not loaded: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib'
Referenced from: '/Library/Frameworks/R.framework/Versions/4.2/Resources/library/dplyr/libs/dplyr.so'
Reason: tried: '/Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libR.dylib' (no such file), '/usr/local/lib/libR.dylib' (no such file), '/usr/lib/libR.dylib' (no such file)
Session info:
sessionInfo()
R version 4.2.2 (2022-10-31)
Platform: x86_64-apple-darwin17.0 (64-bit)
Running under: macOS Monterey 12.6.1
Matrix products: default
LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale:
[1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] glue_1.6.2 ggrepel_0.9.2 ggpp_0.5.0 gginnards_0.1.1
[5] reshape_0.8.9 RColorBrewer_1.1-3 patchwork_1.1.2 ggplotify_0.1.0
[9] ggplot2_3.4.0 FME_1.3.6.2 coda_0.19-4 rootSolve_1.8.2.3
[13] deSolve_1.34
loaded via a namespace (and not attached):
[1] minpack.lm_1.2-2 tidyselect_1.2.0 lattice_0.20-45 colorspace_2.0-3
[5] vctrs_0.5.1 generics_0.1.3 utf8_1.2.2 gridGraphics_0.5-1
[9] rlang_1.0.6 pillar_1.8.1 withr_2.5.0 lifecycle_1.0.3
[13] plyr_1.8.8 munsell_0.5.0 gtable_0.3.1 evaluate_0.19
[17] fansi_1.0.3 Rcpp_1.0.9 scales_1.2.1 digest_0.6.31
[21] grid_4.2.2 cli_3.5.0 tools_4.2.2 yulab.utils_0.0.6
[25] magrittr_2.0.3 tibble_3.1.8 pkgconfig_2.0.3 Matrix_1.5-1
[29] MASS_7.3-58.1 minqa_1.2.5 rstudioapi_0.14 R6_2.5.1
[33] compiler_4.2.2