R
In order to use R on Penzias, Appel, Andy or Karle please load the corresponding module:
module load r
Complete R documentation may be found at http://www.r-project.org/
Running R on Karle
The following is the "Hello World" program written in R:
# Hello World example a <- c("Hello, world!") print(a)
To run R job on Karle server, save your R script into the file (for example "hello.R") and use the following command to launch it:
R --vanilla --slave < helloworld.R
Note that you need to load R module first (see previous section).
Running R on cluster machines
In order to run R job on any of HPCC's cluster machines (Penzias, Appel or Andy) users should use SLURM manager. Submitting serial R job to the SLURM queue is exactly the same as submitting any other serial job.
More information about our installation can be found here R on Cluster Machines
R packages
In order to install R package start R and run the following command:
install.packages("package.name")
You will be prompted to install package into home directory. Agree and pick a non-https mirror from the list. Then, pick a mirror from new list. After package is installed use it starting with
library(package.name)