R

R is a language and environment for statistical computing and graphics. R provides a wide variety of statistical and graphical techniques, and is highly extensible.

One of R's strengths is the ease with which well-designed publication-quality plots can be produced, including mathematical symbols and formulae where needed. Great care has been taken over the defaults for the minor design choices in graphics, but the user retains full control.

R is available as Free Software under the terms of the GNU General Public License in source code form.

Installed on blacklight.

Installed packages

Many packages, such as Rmpi, rparallel, and multicore, are installed on Blacklight for the 2.11.1 version of R. You can see all of the installed packages by typing

module load R
R
library()

If you are interested in a package which is not installed, please contact PSC User Services.

You can get more information on any of those packages by using the library(help) command inside of R. For example, once you have loaded the R module and started R, as above, you can get information on the Rmpi package by typing

library(help=Rmpi)

Blacklight usage

  1. Create a batch job which:
    1. Sets up the use of the module command in a batch job.
    2. Loads the R module. You can check to see which versions of R are available by typing
      module available R
      This command loads the default version of R:
      module load R
    3. Runs the program with a command like:
      R --slave < input-file.R
  2. Submit the job with the qsub command.

See a sample R job for blacklight.