Skip to content

OnDemand RStudio

Accessing RStudio through NCShare OnDemand portal

  1. Login at ood.ncshare.org
  2. Click on Interactive Apps in the top navigation menu
  3. Click on RStudio Apptainer
  4. Select your partition from the dropdown; select CPU unless you specifically need a GPU for your analyses
  5. Walltime: Input the number of hours you would like the server to remain active (please try to remain small, as it will continue running even if you are not using it)
  6. CPUs, GPUs (if reqeusted), and memory: Input the desired amount of CPU (Threads), GPUs (if requested), and memory (try to start small with only a few gigabytes of memory and cores). The higher the requirements you select, the longer your wait times.
  7. Use the "Select Path" button to select the base of installed R packages
  8. Press the blue "Launch" button on the bottom of the page

Connecting to RStudio

  1. After pressing the blue "launch" button, your job will be queued to start an RStudio server. You should see this automatically
  2. Wait a few seconds to a few minutes for the RStudio server to finish launching. The status will automatically change from "Starting" to "Running" when the server is ready
  3. Press the blue "Connect to RStudio Server" button when the server is running to access your RStudio server

Using RStudio Server

  1. In the top left of the interface, click on "File" > "New File" > "R Script" to create a new R Script
  2. To save this file, use Ctrl+S (Command+S on macOS) and choose a file path
  3. Alternatively, upload your existing .r files using the "Upload" button toward the top of the pane in the bottom left corner
  4. When you are ready, you can run your R Script by pressing the "Run" button toward the top right of the top left pane

Transferring data for use with RStudio

You can transfer data via the Open OnDemand website. We recommend transferring individual files this way. If you need to transfer larger data sets, please see our section on data transfers utilizig SCP or rsync.

To transfer an individual file using OnDemand:

  1. Login at ood.ncshare.org
  2. Click on Files > Home Directory
  3. Here, you should see your home user directory (/hpc/home/userID). Look for the blue "Upload" and "Download" buttons.
  4. Selecting either the "Upload" or "Download" button brings up a window where you can select files to either upload or download. Selecting upload will copy files from your local machine to the directory specified by the OnDemand path (e.g., '/hpc/home/userID)'.
  5. If you need to copy files into another directory, simply click on "Change directory" and enter the directory path.