Created
May 12, 2016 13:58
-
-
Save lgatto/84f159d63c7a68211f026c03e9f7898d to your computer and use it in GitHub Desktop.
R installation scripts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## getting the latest R-devel src | |
| rtgz=R-devel.tar.bz2 | |
| rsrc=R-devel | |
| rm $rtgz | |
| wget ftp://ftp.stat.math.ethz.ch/Software/R/$rtgz | |
| rm -rf $rsrc | |
| ## installation | |
| tar xjf $rtgz | |
| cd $rsrc | |
| ## last two new argument are new (to try to get qtinterfaces work) | |
| ./configure --with-jpeglib --with-libpng --with-lapack --with-blas --with-tcltk --with-recommended-packages --enable-R-profiling --enable-memory-profiling --with-cairo --enable-R-shlib --enable-R-static-lib | |
| make | |
| ## make check-devel | |
| make pdf info | |
| sudo make install ## sudo required for /usr/local/bin/R* | |
| make install-pdf | |
| sudo make install-info ## for /usr/local/share/info/ | |
| # sudo chown lgatto.lgatto -R /usr/local/lib/R | |
| ## Alternatively, checking out svn directly | |
| ## from http://www.mail-archive.com/[email protected]/msg00165.html | |
| # mkdir src/ | |
| # cd src | |
| # svn checkout https://svn.r-project.org/R/trunk/ R-devel | |
| # R-devel/tools/rsync-recommended | |
| # cd ../ | |
| # mkdir -p bin/R-devel | |
| # cd bin/R-devel | |
| # ~/src/R-devel/configure && make -j | |
| ## see alse | |
| ## https://stat.ethz.ch/pipermail/r-devel/2013-February/065886.html | |
| # svn co https://svn.r-project.org/R/trunk R-devel | |
| # cd R-devel/ | |
| # tools/rsync-recommended | |
| # ./configure | |
| # make | |
| ## and also | |
| ## http://r.789695.n4.nabble.com/the-case-of-building-R-snapshot-without-svn-nor-network-connection-td4661550.html |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| ## getting the latest R-devel src | |
| rtgz=R-patched.tar.bz2 | |
| rsrc=R-patched | |
| ##rsrc=R-rc | |
| rm -f $rtgz | |
| wget ftp://ftp.stat.math.ethz.ch/Software/R/$rtgz | |
| rm -rf $rsrc | |
| ## installation | |
| tar xjf $rtgz | |
| cd $rsrc | |
| ## last two new argument are new (to try to get qtinterfaces work) | |
| ./configure --prefix=/opt/Rpatched/ --with-jpeglib --with-libpng --with-lapack --with-blas --with-tcltk --with-recommended-packages --enable-R-profiling --enable-memory-profiling --with-cairo --enable-R-shlib --enable-R-static-lib | |
| make | |
| ## make check-devel | |
| ## make pdf info | |
| make install | |
| ## sudo make install-pdf | |
| ## sudo make install-info |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment