Sharing a Project in RStudio (on the new server)

RStudio share

RStudio Pro lets you access and analyze SQL data stored on the BioSense Platform. You can use RStudio to verify data in the BioSense Platform archive (raw, processed, and exceptions tables), confirm information in your Master Facility Table (MFT), and view and query multiple databases and data tables. You can also create and share projects quite easily. Here’s how:

  1.  First, you’ll need to create a new project in a new session in your home directory.
  2.  In the top right corner, click the down arrow next to the new project name and select Share Project:

RStudio right click window

  1. Type the usernames of each person you want to share the project with. Then click the Add button.

RStudio options window

  1. Once you’ve added everyone with whom you want to share the project, click OK at the bottom of the dialog box.

RStudio options prompt

  1. You will receive the error message shown below. Take note of the file name at the end of the path. You’ll need to adjust the permissions on this file in the next step. Click OK.

RStudio prompt

  1. In the left pane of RStudio, click on the Terminal tab. We are going to list the permissions for the files in the shared-projects metadata directory. Update the permissions on the new project that was shared. And then list the permissions again to verify that they were updated correctly.
    1. List the permissions by entering the ls -al /var/lib/rstudio-server/shared-storage/shared-projects/ command and pressing enter.
    2. Update the permissions on the new shared project by entering chmod g+rw /var/lib/rstudio-server/shared-storage/shared-projects/projectfile.proj. Make sure to change projectfile.proj to be the project file in the error message in Step 5. In this example, it is 9fdcf8e0ee7e7.proj.
    3. List the permissions to make sure the changes were successful, ls -al /var/lib/rstudio-server/shared-storage/shared-projects/.

RStudio Terminal

  1. The project is now accessible to everyone it was shared with.
Page last reviewed: September 22, 2021