L.S. In this bug report https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14493#c1 it is mentioned that after moving an R installation one should regenerate the Rscript executable. Is there an easy way to do so (after an R installation has been moved)? I have not found any information in the R installation and administration manual. Many thanks in advance for any pointer. Best wishes, Tobias P.S. The background to this question is the usage of Rscript calls in the Makevars files of some R packages on CRAN, so the 'broken' Rscript prevents installation of certain R packages. -- Tobias Verbeke Manager OpenAnalytics BVBA Jupiterstraat 20 2600 Antwerp Belgium E tobias.verbeke at openanalytics.eu M +32 499 36 33 15 http://www.openanalytics.eu
Dirk Eddelbuettel
2013-Sep-21 19:00 UTC
[Rd] regenerate Rscript after moving R installation
On 21 September 2013 at 20:43, Tobias Verbeke wrote: | P.S. The background to this question is the usage of Rscript | calls in the Makevars files of some R packages on CRAN, so | the 'broken' Rscript prevents installation of certain R packages. More details, please. AFAICT there is no 'broken' Rscript per se. Eg for Rcpp, and per hints from Kurt el al over the years, we have been doing this for a few years PKG_CXXFLAGS=-I../inst/include PKG_LIBS=`$(R_HOME)/bin/Rscript -e "Rcpp:::LdFlags()"` $(LAPACK_LIBS) $(BLAS_LIBS) $(FLIBS) where a key part is the `$(R_HOME)/bin` which permits you to transparently switch between R-release, R-devel, R-beforeMove, R-afterMove, R-whatevr, ... simply by adjusting your shell's $PATH variable, or the R wrapper you for R CMD, or ... It. Just. Works. So if you borked your Rscript somewhere, just use another and quickly rebuild R for the new location. It is after all a cheap build (and cheaper still if you use tricks like ccache which I am a huge fan of, or 'make -j8', or ...) Dirk PS ccache is at http://ccache.samba.org/ and should be in any sane Linux distro -- Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com
On Sep 21, 2013, at 8:43 PM, Tobias Verbeke <tobias.verbeke at openanalytics.eu> wrote:> L.S. > > In this bug report > > https://bugs.r-project.org/bugzilla3/show_bug.cgi?id=14493#c1 > > it is mentioned that after moving an R installation > one should regenerate the Rscript executable. > > Is there an easy way to do so (after an R installation has been > moved)? >You cannot move installed R. Once you run make install, there are several places in which paths get baked in - mainly Rscript and the R start script. What I typically do for deployment on the Labs machines is to use make install rhome=<xxx> where <xxx> is some path that I can always create a symlink in (I also use DESTDIR so that path doesn't actually need to exist on the build machine and it avoid polluting --prefix which is not needed). That way you can move R wherever you want as long so you keep that one symlink up to date. Cheers, Simon> I have not found any information in the R installation and > administration manual. > > Many thanks in advance for any pointer. > > Best wishes, > Tobias > > P.S. The background to this question is the usage of Rscript > calls in the Makevars files of some R packages on CRAN, so > the 'broken' Rscript prevents installation of certain R packages. > > -- > > Tobias Verbeke > Manager > > OpenAnalytics BVBA > Jupiterstraat 20 > 2600 Antwerp > Belgium > > E tobias.verbeke at openanalytics.eu > M +32 499 36 33 15 > http://www.openanalytics.eu > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel > >
Apparently Analagous Threads
- [OT] new R logo in vector graphics format
- Job Opening: Bioinformatician at OpenAnalytics (Belgium)
- Job Openings: Data Analyst and Data Scientist at OpenAnalytics (Belgium)
- Job Openings: Statisticians and Data Scientists at Open Analytics (Belgium)
- NEWS file inconsistency