Getting Started with RStudio Server Pro


When first logging into rstudio server you will see the contents of your home directory (~/). This directory is now persistent for all 20.x workflows, so any content you save there will be available after shutting down and starting a new workflow that uses the same disk.

The persistent area that has been available to all workflows across all versions of metworx is /data. As /data is not within your home directory, you cannot directly navigate to it from the viewer pane by clicking through folders presented there. You may easily navigate to content there (and any other place on the system) via 3 mechanisms:

rstudio-layout

  1. By clicking the Home icon you will be placed into the rstudio workspace. This workspace will present recent projects, as well as previously created and active sessions.

workspace

Clicking on Open Project in the top right will bring you back to rstudio where you can type in /data and press Enter/return

nav-data

in-data

  1. If you do not want to go back to the workspace view, you can also click on (2) which will open a new session chooser. Clicking Browse will present a navigator similar to above.

new-session

  1. To navigate to directories above your home directory you can click the ... in the Files pane.

nav-dots

Using Projects

Use of projects is highly recommended. The key benefits are:

  1. When a project is launched, R will launch from that directory, thereby sourcing .Rprofile and .Renviron for project configuration and setting the working directory to that location. If the project uses renv or packrat this is required for them to start properly.
  2. Recent projects can be easily re-launched from the project switcher in the top right corner or navigating via home to the workspace dashboard. This is especially helpful for navigating if any projects are saved at /data/<project> as you can use the project launcher as a shortcut to navigate there without having to go through the navigation steps.

Creating a Project

New projects can be created via:

new-proj1

or

new-proj2