R travis 是否适用于大型数据包?

Does R travis work on large data packages?

在依赖于 90 Mb 数据包的 R 包上使用 R travis-ci 时,我似乎 运行 遇到内存分配问题(即,它从中获取数据) :

* installing *source* package ‘my_package’ ...
** R
** data
*** moving datasets to lazyload DB
** inst
** preparing package for lazy loading
** help
*** installing help indices
** building package indices
** testing if installed package can be loaded
Error in system2(file.path(R.home("bin"), "R"), c(if (nzchar(arch)) paste0("--arch=",  : 
  cannot popen ' '/home/travis/R-bin/lib/R/bin/R' --no-save --slave 2>&1 < '/tmp/RtmpGLG3uQ/file2f65432e469d'', probable reason 'Cannot allocate memory'
* removing ‘/home/travis/R/Library/my_package’
Warning in q("no", status = 1, runLast = FALSE) :
  system call failed: Cannot allocate memory
Error: Command failed (1)
Execution halted
The command "./travis-tool.sh github_package my_github_handle/my_package" failed and exited with 1 during .

Your build has been stopped.

是因为travis-ci不适用于像这样的大数据包,还是其他问题?

相关帖子:https://github.com/travis-ci/travis-ci/issues/5713, https://github.com/travis-ci/travis-ci/issues/3656

这是我的 travis.yml 文件

language: r
cache: packages
warnings_are_errors: true
sudo: required
before_install:
 - curl -OL http://raw.github.com/craigcitro/r-travis/master/scripts/travis-tool.sh
 - chmod 755 ./travis-tool.sh
install:
 - ./travis-tool.sh aptget_install r-cran-xml
 - ./travis-tool.sh install_github hadley/devtools
 - ./travis-tool.sh install_deps
 - ./travis-tool.sh github_package my_github_handle/my_package
r_github_packages:
 - my_github_handle/my_package

请注意,我的两个 R 包(主要 R 包和它需要的数据包)都在 GitHub 上。

travis.yml 的后半部分不需要。使用:

language: r
cache: packages
warnings_are_errors: true
sudo: false

对于其他包依赖使用devtools' Remote: keyword in DESCRIPTION to specify repositories or opt to create your own repository并使用它(免责声明:我写了这篇文章)。

此设置下的 Travis 图像被限制为具有 4 GB 的 RAM。有关 VM 构建信息的更多信息,请参阅:

https://docs.travis-ci.com/user/ci-environment/#Virtualization-environments

这对于大型数据包表现良好。