Reputation: 1
there is this long error message when i try to install ggplot, please someone help me. Thanks!
install.packages("ggplot2") Installing package into ‘C:/Users/HP/Documents/R/win-library/3.4’ (as ‘lib’ is unspecified) also installing the dependency ‘rlang’
There are binary versions available but the source versions are later: binary source needs_compilation rlang 0.3.4 1.0.1 TRUE ggplot2 3.1.1 3.3.5 FALSE
Binaries will be installed trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.4/rlang_0.3.4.zip' Content type 'application/zip' length 1080437 bytes (1.0 MB) downloaded 1.0 MB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in C:\Users\HP\AppData\Local\Temp\Rtmpwfvrv8\downloaded_packages installing the source package ‘ggplot2’
trying URL 'https://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
The downloaded source packages are in ‘C:\Users\HP\AppData\Local\Temp\Rtmpwfvrv8\downloaded_packages’
Upvotes: 0
Views: 503
Reputation: 134
It's saying your "rlang" version is outdated. Update that, it should be fine. Update all the libraries, that's a good practice while installing packages. (you do the same from tool option in menubar of Rstudio and update package)
Upvotes: 0