RStudioUU
Description
RStudio is a powerful integrated development environment (IDE) for R, providing a user-friendly interface for writing and executing R code, managing projects, and creating visualizations.
Each logged-in user on this workspace gets their own instance of RStudio with access to R packages and project management tools.
Login is done via SRAM.
Creation
Create a storage volume
If desired, first create a storage volume before creating the workspace.
See the Getting started page for more info about how and why to create a storage volume.
Create a workspace
In the Research Cloud portal click the ‘Create a new workspace’ button and follow the steps in the wizzard.
See the workspace creation manual page for more guidance.
Most Utrecht University users will already have access to this catalog item. If you cannot find this catalog item when creating a workspace:
- You need to request access to the Utrecht University Catalog Item Collection.
- Follow these steps to request access.
- Once approved, you’ll be able to create the workspaces.
Access
Accessing the Workspace via the command line (SSH)
If you do not have an ssh key pair set up, you will need to generate one and add the public key to your SURF Research Cloud account. Follow the instructions to set up SSH access..
- Open the ‘Terminal’ application.
- In your terminal application type:
ssh <ResearchCloud username>@<workspace ip address>
The ResearchCloud username is given on the “Profile”-Tab of the ResearchCloud portal page. The ip-address of the workspace is displayed on the (extendable) display tile of the workspace in the main (“Dashboard”) tab.
Make sure you have installed an application that allows you to login using SSH: Git Bash (recommended), alternatively MobaXTerm
Open your ‘Terminal’ application (e.g. Git Bash).
In your terminal application type:
ssh <ResearchCloud username>@<workspace ip address>
The ResearchCloud username is given on the “Profile”-Tab of the ResearchCloud portal page. The ip-address of the workspace is displayed on the (extendable) display tile of the workspace in the main (“Dashboard”) tab.
If you just submitted a new public key or when the workspace is new, you might have to wait for a few minutes for this to work.
Data transfer options
See our data transfer manuals.
Usage
After logging in, RStudio will be accessible through your web browser.
Getting Started with R
- Create a new file or project via the menu in the top left
- Install R packages: Use
install.packages("package-name")in the console - Write R scripts and save them in your project directory
- Run code directly in the console or
For reproducible R environments with package management, see the manual for best practices with R environments.
For detailed guides on using RStudio’s features, see the RStudio documentation.
Tips
Sudo rights
Sudo rights can be obtained by adding collaboration members to the src_co_admin group in SRAM.
Members with sudo rights can install system-level packages and perform administrative tasks on the workspace.
Workspace security
Please take a moment to read the security recommendations for VREs.