R is a language and environment for statistical computing and graphics. It is a GNU project which is similar to the S language and environment which was developed at Bell Laboratories (formerly AT&T, now Lucent Technologies) by John Chambers and colleagues. R can be considered as a different implementation of S. There are some important differences, but much code written for S runs unaltered under R.
To get started with R on the Harvard University FAS Cannon cluster you can try the below examples:
- Example 1: Print out integers from 10 down to 1
You can also look at the instructions for installing specific R packages:
- glmnet, glmtrans
- Some R packages have lots of dependencies and/or require additional software to be installed in the cluster (e.g. protobuf, geojsonio). Properly configuring these installs with R can become problematic. To overcome that, we documented how to install R packages within a Singularity container.
- R packages with Spack with specifc examples of:
glmnet
raster
rgdal
rgeos
rstan
seurat
sf
- Old R versions
~/.Rprofile
~/.Renviron
~/.bashrc
~/.bash_profile
~/.profile
~/.config/rstudio/rstudio-prefs.json
~/.R/Makevars
You can use R in Jupyter notebooks following these instructions.