软件包“ ggplot2”的安装退出状态为非零

时间:2019-01-29 17:18:05

标签: r ggplot2 package rlang

我正在尝试安装以前安装的ggplot2,但是,我不断收到一条错误消息,提示

  

ggplot2的退出状态为非零。

我已经更新了R,并重新安装了它。 我还完成了"install.packaged("ggplot2", dependencies = TRUE),但没有成功,我试图独立安装每个依赖项,但没有成功。  我尝试更新某些依赖项,尤其是rlang,但是该版本永不更改,因此再次没有成功... 这是错误消息

>install.packages("ggplot2", dependencies = TRUE)
Installing package into ‘C:/Users/Liah Brown/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.1              TRUE
ggplot2  2.2.1  3.1.0             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\Liah Brown\AppData\Local\Temp\Rtmpao258F\downloaded_packages
installing the source package ‘ggplot2’

trying URL 'https://cran.rstudio.com/src/contrib/ggplot2_3.1.0.tar.gz'
Content type 'application/x-gzip' length 2863109 bytes (2.7 MB)
downloaded 2.7 MB

* installing *source* package 'ggplot2' ...
** package 'ggplot2' successfully unpacked and MD5 sums checked
** 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/Liah Brown/Documents/R/win-library/3.3/ggplot2'
Warning in install.packages :
  running command '"C:/PROGRA~1/R/R-33~1.2/bin/x64/R" CMD INSTALL -l "C:\Users\Liah Brown\Documents\R\win-library\3.3" C:\Users\LIAHBR~1\AppData\Local\Temp\Rtmpao258F/downloaded_packages/ggplot2_3.1.0.tar.gz' had status 1
Warning in install.packages :
  installation of package ‘ggplot2’ had non-zero exit status

已下载的源包位于     ‘C:\ Users \ Liah Brown \ AppData \ Local \ Temp \ Rtmpao258F \ downloaded_pa​​ckages'

我的会话信息是...

R version 3.3.2 (2016-10-31)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

locale:
[1] LC_COLLATE=English_United Kingdom.1252 
[2] LC_CTYPE=English_United Kingdom.1252   
[3] LC_MONETARY=English_United Kingdom.1252
[4] LC_NUMERIC=C                           
[5] LC_TIME=English_United Kingdom.1252    

attached base packages:
[1] stats     graphics  grDevices utils     datasets  methods   base     

other attached packages:
[1] plyr_1.8.4

loaded via a namespace (and not attached):
[1] tools_3.3.2  yaml_2.1.18  Rcpp_0.12.16

这是我的.libPaths()

[1] "C:/Users/Liah Brown/Documents/R/win-library/3.3"
[2] "C:/Program Files/R/R-3.3.2/library" 

0 个答案:

没有答案