自从更新到3.5后,我很难更新我的许多软件包。在thread的帮助下,除了四个包之外,我设法克服了大多数Rtools的问题:
1: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package 'cairoDevice' had non-zero exit status
2: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package 'manipulateWidget' had non-zero exit status
3: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package 'RGtk2' had non-zero exit status
4: In install.packages(update[instlib == l, "Package"], l, repos = repos, :
installation of package 'xlsx' had non-zero exit status
对于cairoDevice:
install.packages("cairoDevice")
#There is a binary version available but the source version is later:
# binary source needs_compilation
#cairoDevice 2.24 2.25 TRUE
我收到"你想从源代码安装吗?" -prompt,但得到:
compilation terminated.
make: *** [C:/PROGRA~1/R/R-35~1.0/etc/i386/Makeconf:208: cairoDevice.o] Error 1
ERROR: compilation failed for package 'cairoDevice'
同时,
library(pkgbuild)
find_rtools() # should be TRUE, assuming you have Rtools 3.5
[1] TRUE
还有别的吗,我可以吗?
R version 3.5.0 (2018-04-23)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)
Matrix products: default
locale:
[1] LC_COLLATE=German_Germany.1252 LC_CTYPE=German_Germany.1252 LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C LC_TIME=German_Germany.1252
attached base packages:
[1] stats graphics grDevices utils datasets methods base
other attached packages:
[1] pkgbuild_1.0.0 stringi_1.2.3 devtools_1.13.5
loaded via a namespace (and not attached):
[1] digest_0.6.15 crayon_1.3.4 withr_2.1.2 assertthat_0.2.0 R6_2.2.2 git2r_0.21.0.9002
[7] httr_1.3.1 debugme_1.1.0 curl_3.2 rstudioapi_0.7 callr_2.0.4 tools_3.5.0
[13] yaml_2.1.19 compiler_3.5.0 processx_3.1.0 memoise_1.1.0