Multiple R Sessions in RStudio Workbench / RStudio Server Pro

Follow

RStudio Workbench (previously RStudio Server Pro) gives you the ability to open multiple concurrent sessions. Multiple concurrent sessions can be useful when you want to:

  • Run multiple analyses in parallel
  • Keep multiple sessions open indefinitely
  • Participate in one or more shared projects

Opening a New Session

Adding a new session is as easy as clicking “New Session” under the “Session” menu:

Or by clicking the new session button on the top toolbar:

This will create a new session under your current project. You can see all active sessions by clicking the “Sessions” button on the top toolbar:

 

The drop down menu will list all active sessions and let you open individual sessions or all sessions simultaneously by clicking on the icon to open it up in a separate tab.

You also have an option to kill individual sessions by clicking the power button in the top right of your IDE session, within the drop down list of sessions, or through the session pull-down menu. Sessions can also be killed through the administrative console.

Note that closing a window will not kill the session, so it is a good practice to make sure you aren’t keeping a lot of unused open sessions on your server.

Comments