Interesting. I've been using :
install.packages("ggplot2")
Showing this:
Installing package into ‘C:/Users/usuario/Documents/R/win-library/3.5’
(as ‘lib’ is unspecified)
also installing the dependencies ‘lifecycle’, ‘rlang’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
lifecycle 0.2.0 1.0.1 FALSE
rlang 0.4.5 0.4.12 TRUE
scales 1.1.0 1.1.1 FALSE
ggplot2 3.3.0 3.3.5 FALSE
Binaries will be installed
trying URL https//cran.rstudio.com/bin/windows/contrib/3.5/rlang_0.4.5.zip
Content type 'application/zip' length 1115838 bytes (1.1 MB)
downloaded 1.1 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\usuario\AppData\Local\Temp\Rtmp8G2VL1\downloaded_packages
installing the source packages ‘lifecycle’, ‘scales’, ‘ggplot2’
trying URL //cran.rstudio.com/src/contrib/lifecycle_1.0.1.tar.gz
Content type 'application/x-gzip' length 99716 bytes (97 KB)
downloaded 97 KB
trying URL //cran.rstudio.com/src/contrib/scales_1.1.1.tar.gz
Content type 'application/x-gzip' length 515201 bytes (503 KB)
downloaded 503 KB
trying URL ://cran.rstudio.com/src/contrib/ggplot2_3.3.5.tar.gz
Content type 'application/x-gzip' length 3063309 bytes (2.9 MB)
downloaded 2.9 MB
- installing source package 'lifecycle' ...
** package 'lifecycle' successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.5 is being loaded, but >= 0.4.10 is required
ERROR: lazy loading failed for package 'lifecycle'
- removing 'C:/Users/usuario/Documents/R/win-library/3.5/lifecycle'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
ERROR: dependency 'lifecycle' is not available for package 'scales'
- removing 'C:/Users/usuario/Documents/R/win-library/3.5/scales'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘scales’ had non-zero exit status
ERROR: dependency 'scales' is not available for package 'ggplot2'
- removing 'C:/Users/usuario/Documents/R/win-library/3.5/ggplot2'
In R CMD INSTALL
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\usuario\AppData\Local\Temp\Rtmp8G2VL1\downloaded_packages’
But the snippet is not working , the result is :
Error in library(ggplot2) : there is no package called ‘ggplot2’
So, looks like its not installing anything?
Thanks.