Using R and RStudio within OnDemand

Goal: Detail the process of using R and RStudio via the OnDemand service.



What is RStudio

RStudio Desktop: Used by millions of people weekly, the RStudio integrated development environment (IDE) is a set of tools built to help you be more productive with R and Python.

Since this is a desktop GUI application, you will need to run this from ARCC’s OnDemand service, via an interactive desktop.


Start R and RStudio

Process:

  1. Access OnDemand and start an interactive desktop.

  2. Open up a terminal.

  3. Load R.

  4. Load RStudio

  5. Call rstudio from the command line.

If you forget to load a version of R, then you’ll see an error of the form:

RStudio requires a version of R to be available, so a version of R must be loaded before trying to start RStudio.

image-20240702-145101.png
Error if R not found.