Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
software:rstudio [2025-03-07 16:53] – thuachen | software:rstudio [2025-03-07 18:29] (current) – thuachen | ||
---|---|---|---|
Line 5: | Line 5: | ||
=== Start RStudio Server in Singularity Container === | === Start RStudio Server in Singularity Container === | ||
- | First, you will need to start the interactive job on the compute node. | + | First, you will need to start the interactive job on the compute node. Please note that you will need to change traine to your username. |
- | + | For example, | |
- | + | < | |
+ | [(it_css: | ||
+ | salloc: Pending job allocation 5406889 | ||
+ | salloc: job 5406889 queued and waiting for resources | ||
+ | salloc: job 5406889 has been allocated resources | ||
+ | salloc: Granted job allocation 5406889 | ||
+ | salloc: Waiting for resource configuration | ||
+ | salloc: Nodes r1n17 are ready for job | ||
+ | </ | ||
+ | Then, use the VALET to load the RStudio package, | ||
+ | < | ||
+ | [(it_css: | ||
+ | Adding dependency `squashfs-tools/ | ||
+ | Adding dependency `singularity/ | ||
+ | Adding package `r-studio-server/ | ||
+ | </ | ||
+ | After loading the package, start the rserver in the singularity container. | ||
+ | < | ||
+ | [(it_css: | ||
+ | TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/ | ||
+ | TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/ | ||
+ | </ | ||
=== Establish SSH Tunnel === | === Establish SSH Tunnel === | ||
+ | If you are using Linux/Mac, open the terminal on your laptop, then | ||
+ | < | ||
+ | ssh -L 8787: | ||
+ | </ | ||
+ | You may need to change r1n17 to be the node name for your interactive job running. | ||
+ | If you are using a Windows machine, open PuTTY and enter traine@darwin.hpc.udel.edu as the hostname. In addition to your standard connection PuTTY settings, you will need to set up the tunnel setting. The tunnel setting is found under the Category Connection → SSH → Tunnels. Add the Source port as 8787 and Destination as 8787: | ||
=== Access RStudio Interface === | === Access RStudio Interface === | ||
+ | Keep the SSH tunnel connection open and open the web browser, go to | ||
+ | < | ||
+ | localhost: | ||
+ | </ | ||
+ | Then you will see the session for RStudio has started. After the job is completed, you will need to close the SSH tunnel and exit the RStudio session. |