R is a language and environment for statistical computing and graphics. R provides a wide variety of statistical (linear and nonlinear modelling, classical statistical tests, time-series analysis, classification, clustering, ...) and graphical techniques, and is highly extensible. The S language is often the vehicle of choice for research in statistical methodology, and R provides an Open Source route to participation in that activity.
To run this software interactively in a Linux environment run the commands:
module load R R
Several versions of R are available, but the versions may be different on different platforms.To list all versions of R available on the machine, type
module avail R
Programs can be submitted to a queue using PBS script such as the one below. You need to modify the parameters depending on the machine where the job is executed. By default, an R script runs only on one core. If you need to use multiple cores and/or multiple nodes, use packages that are listed in the CRAN page on high performance computing. The most popular R parallel packages are snow, snowfall, Rmpi and parallel.
#PBS -l nodes=1:ppn=8,mem=12gb,walltime=04:00:00 #PBS -m abe cd /location/of/the/script module load R R CMD BATCH myscript.R wait
To run this software under Windows, connect using instruction provided in our Windows systems page. Once logged in, navigate to
Start > All Programs > R > R x64 $VERSION
$VERSION is the version number of the R installation. If you need to run long or memory-intensive jobs, use R on Linux instead. If you need more details, visit the official documentation.
We recommend that you install R packages in your home directory. It can be accomplished by typing the following in the R command prompt. You need to replace packagename with the actual package.
Some packages need external libraries such as gcc, gsl, fftw etc. You can find the requirements in the package documentation. These packages have to be loaded by using 'module load' command before using R. If you still experience issues, please contact email@example.com.