Hello,
I am trying to install ggplo2 package but having issues installing.
I used the following code and then I looked up in this community that I need to install install.packages("vctrs") so I did that but no luck.
install.packages("ggplot2")
library(ggplot2)
This is the error when I run installation of package ‘ggplot2’ had non-zero exit status
install.packages("vctrs")
install.packages("ggplot2")
library(ggplot2)
restoring previous 'C:/Users/Ajay Vaidya/Documents/R/win-library/4.0/lifecycle'
Warning in install.packages :
installation of package ‘lifecycle’ had non-zero exit status
installing source package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** using staged installation
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
Error in loadNamespace(i, c(lib.loc, .libPaths()), versionCheck = vI[[i]]) :
namespace 'rlang' 1.0.2 is being loaded, but >= 1.1.0 is required
Calls: ... withCallingHandlers -> loadNamespace -> namespaceImport -> loadNamespace
Execution halted
ERROR: lazy loading failed for package 'ggplot2'
removing 'C:/Users/Ajay Vaidya/Documents/R/win-library/4.0/ggplot2'
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
Hi,
If it wasn't an issue with the R version, I would have chosen another way to install the R package.
When I install packages failed, I will choose "pak" to install this.
It's address at github r-lib/pak:软件包安装的新方法 (github.com).