-
Notifications
You must be signed in to change notification settings - Fork 3
RStudio Server
RStudio Server is supported on Brain through the use of Singularity containers. With container technology, we are able to package RStudio Server, R, and various R packages into a single reusable image. Each image itself is versioned, meaning we don't upgrade an image, we simply create an updated version of the image. Thus, enabling you to pick a specific version, and go back to it at any time, even after we've released newer versions.
-
To get started, you'll need need establish an SSH session with Brain.
-
Once connected, you'll need to start an interactive computing session with qlogin.
-
From your interactive session, you can request a list of available RStudio Server images, with:
/share/apps/Singularity/start_rstudio_server.sh
-
To launch your selected image, simply run the following (replacing IMAGE with your chosen image):
/share/apps/Singularity/start_rstudio_server.sh IMAGE
-
Once the RStudio Server has started, the terminal will contain instructions for setting up an SSH tunnel, and logging in. Example:
The following SSH commands should be run from your computer. If you are using PuTTY, you will need to adapt the settings. ssh -L 2022:brain.deohs.washington.edu:22 [email protected] ssh -p 2022 -L 59645:compute-0-9.brain.local:59645 jtyocum@localhost Once the SSH tunnel is setup, use a browser to visit http://localhost:59645/, and login with jtyocum / J8/QFD77vnE6TPgL
Once you are finished, end your RStudio Session from within the RStudio web interface. Then, from within the interactive session on Brain, press "Ctrl + C" to terminate the server process. You can then end the various SSH sessions, using the "exit" command.