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