Skip to content

RStudio Server

Brian High edited this page Apr 12, 2021 · 2 revisions

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.

Starting a Session

  1. To get started, you'll need need establish an SSH session with Brain.

  2. Once connected, you'll need to start an interactive computing session with qlogin.

  3. From your interactive session, you can request a list of available RStudio Server images, with:

     /share/apps/Singularity/start_rstudio_server.sh
    
  4. To launch your selected image, simply run the following (replacing IMAGE with your chosen image):

     /share/apps/Singularity/start_rstudio_server.sh IMAGE
    
  5. 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
    

Ending Your Session

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.