Hi All,
I am having problem installing GGPLOT package. This is what happened when I tried to install them.
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/Profile1/Documents/R/win-library/3.6’
(as ‘lib’ is unspecified)
also installing the dependencies ‘rlang’, ‘scales’
There are binary versions available but the source versions are later:
binary source needs_compilation
rlang 0.4.11 1.0.4 TRUE
scales 1.1.1 1.2.1 FALSE
ggplot2 3.3.3 3.3.6 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.6/rlang_0.4.11.zip'
Content type 'application/zip' length 1224139 bytes (1.2 MB)
downloaded 1.2 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\ Users\Profile1\AppData\Local\Temp\Rtmpory2Y8\downloaded_packages
installing the source packages ‘scales’, ‘ggplot2’
trying URL 'hxxxps://cran.rstudio.com/src/contrib/scales_1.2.1.tar.gz'
Content type 'application/x-gzip' length 270609 bytes (264 KB)
downloaded 264 KB
trying URL 'hxxxs://cran.rstudio.com/src/contrib/ggplot2_3.3.6.tar.gz'
Content type 'application/x-gzip' length 3061989 bytes (2.9 MB)
downloaded 2.9 MB
- installing source package 'scales' ...
** package 'scales' successfully unpacked and MD5 sums checked
** using staged installation
** R
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 0.4.11 is being loaded, but >= 1.0.0 is required
Calls: ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'scales' - removing 'C:/Users/Profile1/Documents/R/win-library/3.6/scales'
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/Profile1/Documents/R/win-library/3.6/ggplot2'
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Profile1\AppData\Local\Temp\Rtmpory2Y8\downloaded_packages’