We have had reports in the past where build failures occurred when users had non-standard code in their ~/.Rprofile or Rprofile.site (or equivalent) files.
If such code emits text on stdout , the frequent and implicit invocation of Rscript -e "..." to retrieve settings directly from Rcpp will fail.
You may need to uncomment such non-standard code, or protect it by wrapping it inside if (interactive()) , or possibly try to use Rscript --vanilla instead of plain Rscript .
Installation of the
ecp
package fails with a weird error where the output of.First()
is pasted in the g++ command line.From https://cran.r-project.org/package=Rcpp/vignettes/Rcpp-FAQ.pdf :
We have had reports in the past where build failures occurred when users had non-standard code in their
~/.Rprofile
orRprofile.site
(or equivalent) files. If such code emits text on stdout , the frequent and implicit invocation ofRscript -e "..."
to retrieve settings directly from Rcpp will fail. You may need to uncomment such non-standard code, or protect it by wrapping it insideif (interactive())
, or possibly try to useRscript --vanilla
instead of plainRscript
.