install.packages("ggplot2")
WARNING: Rtools is required to build R packages but is not currently installed. Please download and install the appropriate version of Rtools before proceeding:
https://cran.rstudio.com/bin/windows/Rtools/
Installing package into ‘C:/Users/olufe/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rstudioapi’, ‘evaluate’, ‘pkgload’, ‘praise’, ‘colorspace’, ‘assertthat’, ‘utf8’, ‘Rcpp’, ‘testthat’, ‘farver’, ‘labeling’, ‘munsell’, ‘R6’, ‘RColorBrewer’, ‘viridisLite’, ‘lifecycle’, ‘cli’, ‘crayon’, ‘ellipsis’, ‘fansi’, ‘magrittr’, ‘pillar’, ‘pkgconfig’, ‘vctrs’, ‘digest’, ‘glue’, ‘gtable’, ‘isoband’, ‘rlang’, ‘scales’, ‘tibble’, ‘withr’
There is a binary version available but the source version is later:
binary source needs_compilation
rlang 0.4.5 0.4.6 TRUE
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/ggplot2_3.3.0.zip'
Content-type 'application/zip' length 4021298 bytes (3.8 MB)
downloaded 3.8 MB
library("ggplot2") # Make package available; often used for loading in scripts
Error in library("ggplot2") : there is no package called ‘ggplot2’
Error in install.packages: cannot open file 'C:/Users/olufe/Documents/R/win-library/3.6/file9a07a981388/rstudioapi/help/figures/logo.png': Permission denied