devtools :: check()完成,没有错误,警告或消息,travis构建失败(devtools :: dev_package_deps)

时间:2019-04-09 18:51:18

标签: r travis-ci devtools

Devtools安装成功。然后它做了一些奇怪的事情。

我再次运行devtools :: check()作为健全性检查。然后,我尝试从昨天的成功构建中清除构建缓存(as suggested here),但仍然没有问题:

* installing *source* package ‘devtools’ ...
** package ‘devtools’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (devtools)

The downloaded source packages are in
    ‘/tmp/Rtmpu0ndSC/downloaded_packages’
travis_time:end:00848b22:start=1554833393126312655,finish=1554833397672697388,duration=4546384733
[0Ktravis_time:start:2105dba8
[0K$ 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")}'
Error in match.arg(upgrade, c("ask", "always", "never")) : 
  'arg' must be of length 1
Calls: <Anonymous> ... upgradable_packages -> resolve_upgrade -> match.arg
Execution halted
travis_time:end:2105dba8:start=1554833397677461654,finish=1554833401616975939,duration=3939514285
[0K[31;1mThe 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 .[0m

Your build has been stopped.

这是在devtools安装后通常会发生的情况(即travis安装其余依赖项并开始构建):

Installing R packages: devtools
4.87s$ Rscript -e 'install.packages(c("devtools"));if (!all(c("devtools") %in% installed.packages())) { q(status = 1, save = "no")}'
Installing package into ‘/home/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'http://cloud.r-project.org/src/contrib/devtools_2.0.1.tar.gz'
Content type 'application/x-gzip' length 388953 bytes (379 KB)
==================================================
downloaded 379 KB
* installing *source* package ‘devtools’ ...
** package ‘devtools’ successfully unpacked and MD5 sums checked
** R
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (devtools)
The downloaded source packages are in
‘/tmp/Rtmp1NRksc/downloaded_packages’
22.02s$ 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")}'
ggplot2 (3.1.0 -> 3.1.1) [CRAN]
rlang   (0.3.3 -> 0.3.4) [CRAN]
Installing 2 packages: ggplot2, rlang
Installing packages into ‘/home/travis/R/Library’
(as ‘lib’ is unspecified)
trying URL 'http://cloud.r-project.org/src/contrib/ggplot2_3.1.1.tar.gz'
Content type 'application/x-gzip' length 2862022 bytes (2.7 MB)
==================================================
downloaded 2.7 MB
trying URL 'http://cloud.r-project.org/src/contrib/rlang_0.3.4.tar.gz'
Content type 'application/x-gzip' length 858992 bytes (838 KB)
==================================================
downloaded 838 KB
* installing *source* package ‘rlang’ ...
** package ‘rlang’ successfully unpacked and MD5 sums checked
** libs
gcc -std=gnu99 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I./lib/  -I/home/travis/R-bin/include   -fpic  -g -O2  -c capture.c -o capture.o
gcc -std=gnu99 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I./lib/  -I/home/travis/R-bin/include   -fpic  -g -O2  -c export.c -o export.o
gcc -std=gnu99 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I./lib/  -I/home/travis/R-bin/include   -fpic  -g -O2  -c internal.c -o internal.o
gcc -std=gnu99 -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I./lib/  -I/home/travis/R-bin/include   -fpic  -g -O2  -c lib.c -o lib.o
gcc -std=gnu99 -shared -L/home/travis/R-bin/lib/R/lib -L/home/travis/R-bin/lib -o rlang.so capture.o export.o internal.o lib.o -L/home/travis/R-bin/lib/R/lib -lR
installing to /home/travis/R/Library/rlang/libs
** R
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** testing if installed package can be loaded
* DONE (rlang)
* installing *source* package ‘ggplot2’ ...
** package ‘ggplot2’ successfully unpacked and MD5 sums checked
** R
** data
*** moving datasets to lazyload DB
** inst
** byte-compile and prepare package for lazy loading
** help
*** installing help indices
*** copying figures
** building package indices
** installing vignettes
** testing if installed package can be loaded
* DONE (ggplot2)

1 个答案:

答案 0 :(得分:0)

并不是真正的解决方案,但是以某种方式,此先前运行的版本的状态已神奇地更改为“通过”。我不确定这怎么可能...所以,如果您看到此错误,我想您只需要等待它即可。