1. Uploaded 2 Plays 0 Comments
  2. Uploaded 6 Plays 0 Comments
  3. Project Sharing is a feature of RStudio Server Pro that enables users to work together on RStudio projects. I can share my project by selecting “share project” from either the file menu or the project menu and then adding a user. You can share a project with multiple users, but in this example I will select a single user.

    The guest user can open that project by either selecting it in the project menu or by selecting “open project” where all the shared projects are listed.

    Notice the small icons in the upper right hand corner of the screens indicating this project is actively being shared by two users.

    And now, any highlighting or editing done here will also appear in my script window.

    The reason I shared this project was because I was having problems with my shiny app. Notice I’m getting an error. I’m going to ask the guest to help me out. But first I am going to follow the guest’s cursor so I can track any changes made to my file.

    The guest runs the app in an independent R session and gets the same error. Fortunately for me, this error is very easy to fix. Here is the line that is causing the error. The reactive requires parentheses in order to be valid.

    The guest user inserts the parentheses, saves the file, and reloads the app. Now the app runs without errors.

    I can also verify this fix by reloading the app in my session. The error has indeed been resolved thanks to the edits saved by the guest user.

    RStudio Server Pro manages the permissions of files in the project. When you share a project, collaborators will have all the same permissions you do on all of the project files. Project sharing does not move the project on the file system, and ordinary file permissions are not modified. You can be confident that sharing your project won’t expose it to anyone other than the users you’ve chosen.

    Collaborative editing is a great way to brainstorm with other users, review code together, and learn from each other. It can also be useful for teams that are spread out geographically. Project sharing is a useful tool for anyone who wants to improve or share their code.

    Uploaded 7 Plays 0 Comments
  4. RStudio Server Pro gives you the ability to select multiple versions of R by selecting it from the drop down list near the top right hand corner of your browser window.

    When you switch versions, you will remain in your project, but your R session will restart.

    You can also control the default version of R for new sessions by changing the global options.

    When you start a new project you also have the ability to select from the installed R versions.

    To install multiple version of open-source R side-by-side you will need to compile R from source.

    Packages are associated with a specific version of R. Notice that this older version of dplyr is loaded from the currently selected R version. Here I’m going to use the dplyr package to select temperature from the pressure data. When I upgrade to a newer version of R, I will also upgrade to a newer version of dplyr.

    Notice that this version of dplyr was loaded from a library in the new version of R. And now my code generates a warning. At this point I have to decide if I am going to modify my code or stay with the older version of R.

    Large and small teams of analysts inevitably work on projects that depend on different versions of R. Multiple versions of R is a feature that can be used to support groups that are working on several projects over an extended period of time.

    We hope this feature will help individual analysts do better work and help administrators support their teams.

    Uploaded 12 Plays 0 Comments
  5. RStudio Server Pro gives you the ability to run multiple concurrent sessions inside a browser window by clicking on “Session” and choosing “New Session” or by clicking the icon in the top right hand corner of your screen.

    In this example I want to approximate Pi by calculating the digits with a monte carlo simulation. This job will take a long time.

    While this job is running, I’m going to open a new session so that I can continue working on the project.

    The dialogue box allows me select the project for the new session.

    The new session opens another tab in the browser and runs independently of the previous session. If you close a tab that session will continue to run as you would expect to do.

    Now I can continue my work in the new session while the computer continues to work on a solution in the other session.

    I can even check the status of the other session by plotting the current state of its output.

    Here I will read the data into R. Notice the number of lines read.

    And I also will plot the data across the number of iterations. Notice the solution slowly converging to Pi over time.

    I can continue to monitor this job or build upon its output while the other session continues to execute.

    The session menu in the top right hand corner of the browser window allows you to manage multiple sessions. Notice I have two sessions open. I can open a session in the current tab, open a session in a new tab, or quit a session. I can also open all sessions.

    Multiple sessions will show up on the admin console with different process id’s. Administrators can manage multiple sessions with the admin console or the command line.

    Multiple concurrent sessions is a feature that allows you to get more work done in parallel. You can use it along with long running jobs, sharing projects with your coworkers, or iterating on multiple versions of your code.

    Uploaded 24 Plays 0 Comments


RStudio, Inc. PRO

Browse This Channel

Shout Box

Heads up: the shoutbox will be retiring soon. It’s tired of working, and can’t wait to relax. You can still send a message to the channel owner, though!

Channels are a simple, beautiful way to showcase and watch videos. Browse more Channels.