- RStudio is an integrated development environment (IDE) that uses the R language, which is used for statistical computing and graphics.
- R can be used without RStudio but RStudio requires R to be installed.
- RStudio provides a user-friendly interface to R and offers a code editor, debugger, and build automation tools.
→ Note that at this time (5/2023) RStudio Server is not installed on our development nodes (bamdev1/2). RStudio Server is being considered as a future feature addition.
There are two methods of using R with RStudio:
- Use R that is provided as part of the OS distribution's development tools
- Use a specific version of R via Easybuild modules.
Easybuild R modules may not play nicely with some of system graphic libraries. If your work requires plotting, you may want to use R provided by the distribution.
To use the standard distribution version of R and RStudio simply run either:
> R
> rstudio
To use RStudio with a particular version of R via Easybuild modules:
> module load EBModules
> module load R/4.2.0-foss-2021b
> rstudio
If you have issues, make sure you are running the desired version of R and RStudio:
The standard OS distribution of R and RStudio are both located in /usr/bin:
> which R
/usr/bin/R
> which rstudio
/usr/bin/rstudio
Loading an R module will put that version first in your path:
> module load EBModules; module load R/4.2.0-foss-2021b
> which R
/grid/it/data/elzar/easybuild/software/R/4.2.0-foss-2021b/bin/R
To remove the Easybuild R module and use the default:
> module unload R/4.2.0-foss-2021b
Robert Petkus