This guide documentation howto install R version 2.15 from Source into your home directory under the $HOME/local folder. This guide follows on for the install GCC 4.7.1, install Python 2.7.3 and install Octave 3.6.3 from source guides. ie
$ gcc -v ... gcc version 4.7.1 (GCC) $ python -V Python 2.7.3 $ octave -v GNU Octave, version 3.6.3 ...
The build working directory is going to be under the /tmp/$USER/R_build folder on the login node. To begin, lets download R's source code and read the provided install instructions.
$ mkdir -p /tmp/$USER/R_build $ cd /tmp/$USER/R_build $ wget -c http://cran.mirror.ac.za/src/base/R-2/R-2.15.1.tar.gz $ tar -xf R-2.15.1.tar.gz $ cd R-2.15.1 $ less INSTALL
It also recommended that you read the manual .
$ mkdir /tmp/$USER/R_build/R-2.15.1/BUILD $ cd /tmp/$USER/R_build/R-2.15.1/BUILD $ ../configure --help | less $ ../configure --prefix=$HOME/local --libdir=$HOME/local/lib64
hmmm, if openMP cause problems, reconfigure with –disable-openmp flag.
$ screen $ make > make.build 2>&1 ctrl-a crtl-d $ tail -f make.build
Make took 20 minutes to complete when this guide was written.
$ make check
Testing took 5 minutes to complete, and everything should be OK.
$ make install
return to your home directory then check and
$ cd ~ $ R R version 2.15.1 (2012-06-22) -- "Roasted Marshmallows" ....
whala
Remember to clean up after yourself.
$ rm -r /tmp/$USER/R_build
from inside the R shell, just
R install.packages($PACKAGE)