Error using packrat and Travis CI

24 views
Skip to first unread message

christoph...@gmail.com

unread,
Jan 31, 2019, 11:19:19 AM1/31/19
to packrat-discuss
Hi, I am using packrat for an app written in R and I have difficulties running it in my Travis CI virtual machine. Here is my packrat.lock file dans my .travis.yml file.

I put my Travis CI log into travis.log

Looks like Travis CI can't compile properly Rcpp :

Error: Command failed (1)
Failed to run system command:
'/home/travis/R-bin/lib/R/bin/R' --vanilla CMD INSTALL '/tmp/Rtmp3XVHlj/Rcpp' --library='/home/travis/build/cdash04/vitrine-parlementaire/packrat/lib/x86_64-pc-linux-gnu/3.5.2' --install-tests --no-docs --no-multiarch --no-demo
The command failed with output:
* installing *source* package 'Rcpp' ...
** package 'Rcpp' successfully unpacked and MD5 sums checked
** libs
g++ -I"/home/travis/R-bin/lib/R/include" -DNDEBUG -I../inst/include/ -I/home/travis/R-bin/include -fpic -g -O2 -c Date.cpp -o Date.o
In file included from ../inst/include/Rcpp.h:79:0,
from Date.cpp:31:
../inst/include/Rcpp/Rmath.h: In function 'double R::pythag(double, double)':
../inst/include/Rcpp/Rmath.h:222:55: error: '::Rf_pythag' has not been declared
inline double pythag(double a, double b) { return ::Rf_pythag(a, b); }
^
make: *** [Date.o] Error 1
ERROR: compilation failed
In addition: Warning message:
In packrat::restore(prompt = FALSE, restart = FALSE) :
The most recent snapshot was generated using R version 3.3.2
Execution halted
The command "R -e "0" --args --bootstrap-packrat" failed and exited with 1 during .

I tried multiple compiler to be sure and still doesn't work.

Do you have any idea ?
packrat.lock
.travis.yml
travis.log

Kevin Ushey

unread,
Feb 11, 2019, 2:05:57 PM2/11/19
to christoph...@gmail.com, packrat-discuss
It looks like the version of Rcpp that you're attempting to install is not compatible with the version of R you're using. I'm not sure how you might've gotten into this state, but I would recommend updating Rcpp.

--
You received this message because you are subscribed to the Google Groups "packrat-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email to packrat-discu...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages