R错误:安装软件包的退出状态为非零

时间:2020-01-21 11:21:22

标签: r package

我已经设置了每日R脚本来自动更新所有软件包:

## ---- Automatically update all packages and their dependencies -------
    options(install.packages.compile.from.source = "always")
    options(repos = c(CRAN = "http://cran.rstudio.com"))
    update.packages(ask = FALSE, dependencies = TRUE)

但是脚本结束时我会收到以下警告:

Warning messages:
1: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
  installation of package ‘agricolae’ had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
  installation of package ‘brms’ had non-zero exit status
3: In install.packages(update[instlib == l, "Package"], l, contriburl = contriburl,  :
  installation of package ‘gstat’ had non-zero exit status

我可以在代码中添加/修改任何内容来修复这些警告吗? 我的sessioninfo()是: R版本3.6.2(2019-12-12) 平台:x86_64-w64-mingw32 / x64(64位) 运行在:Windows Server x64(内部版本14393)

Matrix products: default

locale:
[1] LC_COLLATE=English_United States.1252  LC_CTYPE=English_United States.1252    LC_MONETARY=English_United States.1252 LC_NUMERIC=C                          
[5] LC_TIME=English_United States.1252    

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

loaded via a namespace (and not attached):
[1] compiler_3.6.2 tools_3.6.2

0 个答案:

没有答案