本文介绍了无法在Travis上使用devtools安装R软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Travis CI为 :

Travis CI builds for the drake R package manual recently started failing:

Downloading GitHub repo ropensci/drake@master
Error: Could not find tools necessary to compile a package
In addition: Warning message:
In get0(oNam, envir = ns) : internal error -3 in R_decompress1
Execution halted
The command "Rscript -e 'deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .

我,并且:

$ Rscript -e 'deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'
drake     (ae093a068... -> 7f40fc6be...) [GitHub]
lazyeval  (0.2.1        -> 0.2.2       ) [CRAN]
polyclip  (1.9-1        -> 1.10-0      ) [CRAN]
purrr     (0.3.1        -> 0.3.2       ) [CRAN]
readxl    (1.3.0        -> 1.3.1       ) [CRAN]
rmarkdown (1.11         -> 1.12        ) [CRAN]
stringi   (1.3.1        -> 1.4.3       ) [CRAN]
tibble    (2.0.1        -> 2.1.1       ) [CRAN]
tinytex   (0.10         -> 0.11        ) [CRAN]
Installing 8 packages: lazyeval, polyclip, purrr, readxl, rmarkdown, stringi, tibble, tinytex
Error in if (type == "binary") { : argument is of length zero
Calls: <Anonymous> ... with_rprofile_user -> with_envvar -> force -> force -> i.p
Execution halted
The command "Rscript -e 'deps <- devtools::dev_package_deps(dependencies = NA);devtools::install_deps(dependencies = TRUE);if (!all(deps$package %in% installed.packages())) { message("missing: ", paste(setdiff(deps$package, installed.packages()), collapse=", ")); q(status = 1, save = "no")}'" failed and exited with 1 during .

我相信构建应该成功,至少可以达到实际手册开始运行的程度。

I believe the builds should succeed, at least up to the point where the actual manual starts to run.

推荐答案

修改2.0.3 (现在在CRAN上)已解决此问题。 Travis CI从那里得到它。

remotes 2.0.3 (now on CRAN) fix this. Travis CI gets it from there.

请参阅

感谢Jim Hester!

Thanks to Jim Hester!

这篇关于无法在Travis上使用devtools安装R软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-01 15:46