Skip to content

R

Overview

R is a programming language and software environment for statistical analysis and graphics. It is widely used in scientific computing, especially for data analysis and statistical modeling.

  • Below are the instructions for loading R, installing packages, and managing libraries.

Step by Step

  1. Loading R: To use R on the cluster, first check the available versions:

    module avail R
    

Then load the desired version:

```bash
module load R/4.0.3
```
  1. Installing Packages: Within an R session, you can install additional packages directly using:

    install.packages("package_name")
    
  2. Managing Package Libraries: To set a custom directory for packages, modify the .libPaths() variable:

    .libPaths("/my/custom/directory")
    
  3. Updating Packages: To update installed packages, use:

    update.packages()
    

Problems and Support

If you need help using R, please contact us through our support page.