hexylena / docker-rstudio-notebook

RStudio as a Galaxy Interactive Environment
MIT License
5 stars 17 forks source link

Fix compilation of some R packges via Rcpp #34

Closed nsoranzo closed 4 years ago

nsoranzo commented 4 years ago

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