Skip to content

R Statistics

How to use R on the OOD cluster

The R statistics package is available on the cluster, and may be used either via an OOD desktop session or an R-Studio session on the same Open OnDemand service.

Multiple versions of R may be available on the cluster. The OOD R-Studio session launcher presents a list of versions to choose from, but when launching from the command line you can select which version you require using the module command:

module spider R

which will list the available versions, and you can then load R with

module load R

or

module load R/version

In addition to the main R package there are several collections of R libraries available. Loading one of these will automatically load the version of R they are built against, so loading R first is not necessary. To list the available bundles use:

module spider R-bundle

which will list the available bundles and the libraries and versions included within.

The two most widely useful are R-bundle-CRAN which includes over 1000 libraries and R-bundle-FIX.

Ordinarily, you would not load R-bundle-FIX, instead loading the FIX module when you need to run the legacy 'FIX' tool.

When using R-Studio, create a text file somewhere in your home folder with the appropriate module load commands. For example

echo "module load R-bundle-CRAN" > ~/r-cran-module.txt

to load the CRAN module. Now add

'/home/fs0/<username>/r-cran-module.txt'

to the Extra modules script