Cookies on this website

We use cookies to ensure that we give you the best experience on our website. If you click 'Accept all cookies' we'll assume that you are happy to receive all cookies and you won't see this message again. If you click 'Reject all non-essential cookies' only necessary cookies providing core functionality such as security, network management, and accessibility will be enabled. Click 'Find out more' for information on how to change your cookie settings.

How to use R on the OOD cluster

The R statistics package is available on the cluster, and may be used either via a OOD desktop session or R-Studio session.

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

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