cnzxcxt1 发表于 2019-5-3 14:24 
删除了就行
我删过了rlang包, 重新安装还是安装的是rlang的 0.2.0版本哈。 我还用了不同的镜像,都是这个版本。 我也用了rstudio 的update package, 也没有升级。 不知道为啥,求指导
Installing package into ‘C:/Users/Administrator/Documents/R/win-library/3.3’
(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.2.0 0.3.4 TRUE
ggplot2 2.2.1 3.1.1 FALSE
Binaries will be installed
trying URL 'https://cran.rstudio.com/bin/windows/contrib/3.3/rlang_0.2.0.zip'
Content type 'application/zip' length 754726 bytes (737 KB)
downloaded 737 KB
package ‘rlang’ successfully unpacked and MD5 sums checked
The downloaded binary packages are in
C:\Users\Administrator\AppData\Local\Temp\Rtmp4k5ht0\downloaded_packages
installing the source package ‘ggplot2’
trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.1.tar.gz'
Content type 'application/x-gzip' length 2862022 bytes (2.7 MB)
downloaded 2.7 MB
* installing *source* package 'ggplot2' ...
** 成功将'ggplot2'程序包解包并MD5和检查
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
Error in loadNamespace(j <- i[[1L]], c(lib.loc, .libPaths()), versionCheck = vI[[j]]) :
namespace 'rlang' 0.2.0 is being loaded, but >= 0.2.1 is required
ERROR: lazy loading failed for package 'ggplot2'
* removing 'C:/Users/Administrator/Documents/R/win-library/3.3/ggplot2'
Warning in install.packages :
running command '"C:/PROGRA~1/R/R-33~1.0/bin/x64/R" CMD INSTALL -l "C:\Users\Administrator\Documents\R\win-library\3.3" C:\Users\ADMINI~1\AppData\Local\Temp\Rtmp4k5ht0/downloaded_packages/ggplot2_3.1.1.tar.gz' had status 1
Warning in install.packages :
installation of package ‘ggplot2’ had non-zero exit status
The downloaded source packages are in
‘C:\Users\Administrator\AppData\Local\Temp\Rtmp4k5ht0\downloaded_packages’