Quantcast
Channel: Active questions tagged r - Stack Overflow
Viewing all articles
Browse latest Browse all 201839

Does R travis work on large data packages?

$
0
0

I seem to be running into a memory allocation issue when using R travis-ci on an R package that depends on a 90 Mb data package (i.e., that's where it gets its data from):

* 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.

Is it because travis-ci doesn't work with large data packages like this, or is it some other issue?

Related posts: https://github.com/travis-ci/travis-ci/issues/5713, https://github.com/travis-ci/travis-ci/issues/3656

Here is my travis.yml file

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

Note that both of my R packages (both the main R package and the data package it requires) are both on GitHub.


Viewing all articles
Browse latest Browse all 201839

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>