Hello. I am new to R and I am trying to install ggplot2, dev tools. This is the R version I am running:
> sessionInfo() R version 4.1.2 (2021-11-01) Platform: x86_64-apple-darwin17.0 (64-bit) Running under: macOS Monterey 12.1 Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.1/Resources/lib/libRlapack.dylib locale:  en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8 attached base packages:  stats graphics grDevices utils  datasets methods base loaded via a namespace (and not attached):  compiler_4.1.2 cli_3.1.1  tools_4.1.2 > install.packages("ggplot2", "devtools") Warning in install.packages : 'lib = "devtools"' is not writable Would you like to use a personal library instead? (yes/No/cancel) no Error in install.packages : unable to install packages
Here is the error I receive when I try to install ggplot2 on its own:
install.packages("ggplot2") trying URL 'https://cran.rstudio.com/bin/macosx/contrib/4.1/ggplot2_3.3.5.tgz' Content type 'application/x-gzip' length 4125542 bytes (3.9 MB) ================================================== downloaded 3.9 MB The downloaded binary packages are in /var/folders/h4/b6z9yv054_j7cx24fkxkhmlw0000gn/T//RtmppORUs7/downloaded_packages
What am I missing? Any help is appreciated.