Use R on Pi supercomputer

Load R module modules

Load R compiled against GCC:

$ module load gcc R

Load R compiled against Intel compiler:

$ module load icc R

Install R packages

Synosys

> install.packages("PKG_NAME", dependencies=TRUE, contriburl="http://cran.rstudio.com/src/contrib/")

An example (Use R compiled against GCC):

$ module use /lustre/usr/modulefiles/pi
$ module purge; module load gcc R
$ R
> install.packages("ggplot2", dependencies=TRUE, contriburl="http://cran.rstudio.com/src/contrib/")

Install R packages with external dependency

$ module use /lustre/usr/modulefiles/pi
$ module purge; module load gcc R netcdf
$ R
> source("http://bioconductor.org/biocLite.R")
> biocLite("MSnbase")