RStudio is an Integrated Development Environment (IDE) for editing and running R programs.
In the ecocloud Platform, RStudio is accessed through the JupyterLabs user interface. Therefore, a Jupyter server is launched to run RStudio. JupyterLab can be used for other tasks, such as to manage files on the server's temporary storage (see storage overview) and for running Jupyter Notebooks (see using Jupyter Notebooks). This article only covers the use of RStudio.
A single Jupyter server is used to run the JupyterLab user interface and RStudio.
The sections below describe actions on the Jupyter server:
- Launching a Jupyter server
- Terminating a Jupyter server
And actions that can be performed, once a Jupyter server is running:
- Starting RStudio
- Stopping RStudio
To launch a new server:
- Go to the tools page ⓔ. Sign in, if you have not yet signed in.
- Follow the link for "R (Studio and Jupyter". The hub control panel will appear.
- Press the “Start My Server” button. The “Spawner Options” page will appear.
- Select “RStudio Notebook” and press the “Spawn” button.. The JupyterLab page will appear.
Note: if you do not see the "Start My Server" button, it could be because another server is already running. Currently, a maximum of one server can be run, so you will need to terminate the running server before another can be launched. It could also be because another server is in the process of being terminated, in which case please wait a minute before trying again.
RStudio is started from the JupyterLab launcher.
- Press the "RStudio" button. The button is in the "launcher" pane (the right side of the page), under the "Notebook" section (the top row of icons).
- From the “File” menu, select “Quit Session”. A dialog will appear saying the R session has ended.
- Close the browser tab.
When finished with the JupyterLab server, it should be terminated so the resources it uses are released.
- Save your data. This is very important, since all data in the server’s temporary storage will be lost when the server is terminated.
- Check that all notebooks and scripts you want to keep are saved to the workspace storage.
- Check that all input/result data you want to keep are saved to external storage.
- From the "Hub" menu choose "Control Panel". The hub control panel will appear.
- Press the “Stop My Server” button. Wait a few seconds and the “Stop My Server” button will disappear.
- Close the browser tab containing the hub control panel.
- Close the browser tab containing JupyterLab (ignore any "server connection error" dialog that appears).