Guide 4: Running R-Studio from Hydra
For the Most Up to Date Information
The information provided here is adapted from the Smithsonian guide on "Using the R-Studio Server". Please refer to the source documentation for full instructions.
Hydra offers a dedicated R-Studio Server for interactive running of R-based workflows using a familiar GUI.
Users can leverage this server to test, debug, and develop R based workflows using the interactive R-Studio GUI (currently running R 4.5.2). By logging in with your Hydra account credentials, you will have access to the storage under /data, /scratch and /store.
Getting Started
The R-Studio environment is accessible directly via a browser at https://galaxy.si.edu/R4.
Just like the other components of Hydra, this server is only accessible from computers connected to Smithsonian networks (i.e., VPN, telework.si.edu, or on-site networks), not on the public internet. Instructions for remote access are provided below in Remote Access.
- Open https://galaxy.si.edu/R4 in a browser on a computer that has access to Hydra.
- Log in with your Hydra username (all lowercase) and password.

- A web-based interface to a R-Studio session running on the server opens. The interface is nearly identical to what you would use on your workstation.
You can install packages, run scripts, and create R projects in the same way as you would on your workstation.

- The "Files" tab shows Hydra's storage systems. You have access to Hydra's
/home,/scratch,/data, and/storedirectories. You can use the R-Studio Server interface to transfer files or use other file transfer tools. Click on the "..." to change to the location where your files are located.
- All computations are performed on the dedicated server. If you close the browser window, your R session continues so objects in memory are preserved and computations will continue.
Software specifications
The instance is running:
- R 4.5.2
- RStudio Server 2024.12.0+467
The version of R and R-Studio Server is the same for all users.
Hardware specifications
The dedicated R-Studio Server node has:
- 192 CPU cores
- 1.5 TB of memory
Be mindful that the R-Studio Server is a shared resource. Please terminate idle R sessions to free up memory for other users when not in use.
Remote access
The R-Studio Server can be accessed directly from your browser if your computer has a VPN enabled to access Hydra. The Smithsonian Telework website - https://telework.si.edu - can also be used to access Hydra without a VPN. To do so:
-
Log into:
https://telework.si.edu -
In the text box in the top left of the window, under the Smithsonian logo, labeled "Enter an internal resource" enter:
https://galaxy.si.edu/R4
and then press the enter/return key.
-
The R-Studio Server login page will open in the same way as if you were onsite.
R-Studio Server vs R Workstation
Using R-Studio Server is nearly identical to running the standard workstation version of R-Studio. However, some key differences exist:
a) File transfer
Your data must be transferred to/from Hydra to work on it - directories in /home, /data, and /scratch are all available on this server. Note: /store is not available at this time. The Hydra storage guidance, quotas, and scrubber policies apply to data used through the dedicated R-Studio Server.
In addition to the existing file transfer tools for Hydra (see the file transfer guide, quick start guide, and Globus), R-Studio Server has built-in tools for file transfers. These built-in tools are best for small files or quick edits. For large files or large file sets consider other file transfer tools.
Using R-Studio Server's built-in tools
-
Upload from your computer to Hydra - use the “Upload” button in the Files tag

- Only one file can be uploaded at a time. Create a zip archive on your computer to upload several files at once. R-Studio Server will unzip them automatically when they’re received.
-
Download from Hydra to your computer
- Select the checkboxes for files and folders you want to download.
- Click the “More” button.
- Choose “Export…”

- In the pop-up window click the Download button to save to your computer. If multiple files or a folder was selected, it will be zipped automatically prior to download.

b) R session
Your R session will continue to run on the server when you close your browser window or log off your computer. Any analyses underway will continue and your memory will be preserved. To re-connect to your R session, log back in to the R-Studio Server. This will work even if you log back on from a different computer. This allows you to start a long analysis on the server and then disconnect.
Ending your Session
When you have completed your work on the R-Studio Server, please quit your R session to free resources for other users.
Use “Quit Session...” from the Session or File menu.

One Session limit
R-Studio Server only allows one R session per user. This means that if you have an existing session and log in to the server via a browser, control of that session will switch to the current browser. There is not a way to have more than one browser window open with different R-Studio and R sessions.
Additional Information
For additional information on using R-Studio Server, please see the full reference documentation provided on the High Performance Computing website: Using the R-Studio Server.