Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
software:rstudio [2025-03-24 16:31] – [Start RStudio Server in Singularity Container] anita | software:rstudio [2025-03-24 18:40] (current) – [Access RStudio Interface] anita | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Using R Studio | + | ====== Using RStudio |
<note tip> | <note tip> | ||
Line 6: | Line 6: | ||
==== Start RStudio Server in Singularity Container ==== | ==== Start RStudio Server in Singularity Container ==== | ||
<note important> | <note important> | ||
- | Do not run RStudio on the login (head) nodes. Always start an interactive job on the compute node before launching RStudio. | + | Do not run RStudio on the login (head) nodes. Always start an interactive job on a compute node before launching RStudio. |
</ | </ | ||
First, make sure you are in your workgroup, then launch an interactive job on a compute node. For example using workgroup '' | First, make sure you are in your workgroup, then launch an interactive job on a compute node. For example using workgroup '' | ||
Line 20: | Line 20: | ||
[(it_css: | [(it_css: | ||
</ | </ | ||
- | Once on the compute node the prompt changes accordingly, | + | Once on a compute node the prompt changes accordingly, |
<code bash> | <code bash> | ||
[(it_css: | [(it_css: | ||
Line 33: | Line 33: | ||
TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/ | TTY detected. Printing informational message about logging configuration. Logging configuration loaded from '/ | ||
</ | </ | ||
+ | |||
+ | Make a note of the compute node name, in this example '' | ||
+ | |||
==== Establish SSH Tunnel ==== | ==== Establish SSH Tunnel ==== | ||
<note important> | <note important> | ||
Line 38: | Line 41: | ||
</ | </ | ||
=== Linux/MacOS === | === Linux/MacOS === | ||
- | If you are using Linux or MacOS, open the terminal on your laptop and type | + | If you are using Linux or MacOS, open the terminal on your laptop |
<code bash> | <code bash> | ||
ssh -L 8787: | ssh -L 8787: | ||
</ | </ | ||
- | be sure to replace '' | + | be sure to replace '' |
=== Windows === | === Windows === | ||
Line 49: | Line 52: | ||
{{: | {{: | ||
- | If you are doing this on Caviness, then you would use '' | + | If you are doing this on Caviness, then you would use '' |
{{: | {{: | ||
- | Click **Add** to confirm the tunnel settings, then click **Open** to connect. You will be prompted to enter your username and password for your DARWIN (or Caviness) account. | + | Click **Add** to confirm the tunnel settings, then click **Open** to connect. You will be prompted to enter your username and password for your DARWIN (or Caviness) account |
{{: | {{: | ||
==== Access RStudio Interface ==== | ==== Access RStudio Interface ==== | ||
- | Once SSH tunnel connection is open, then open a web browser and navigate to the following URL | + | Once SSH tunnel connection is established, then open a web browser |
< | < | ||
localhost: | localhost: | ||
</ | </ | ||
- | You should see the RStudio session start. Once you have completed your work, exit the RStudio session by closing the browser, close the SSH tunnel, | + | You should see the RStudio session start. Once you have completed your work, exit the RStudio session by closing the browser, close the SSH tunnel |