RStudio on Amazon SageMaker - Amazon SageMaker

RStudio on Amazon SageMaker

RStudio is an integrated development environment for R, with a console, syntax-highlighting editor that supports direct code execution, and tools for plotting, history, debugging and workspace management. Amazon SageMaker supports RStudio as a fully-managed integrated development environment (IDE) integrated with Amazon SageMaker Domain.

RStudio allows customers to create data science insights using an R environment. With RStudio integration, you can launch an RStudio environment in the Domain to run your RStudio workflows on SageMaker resources. For more information about RStudio, see the RStudio website.

SageMaker integrates RStudio through the creation of a RStudioServerPro app.

The following are supported by RStudio on SageMaker.

  • R developers use the RStudio IDE interface with popular developer tools from the R ecosystem. Users can launch new RStudio sessions, write R code, install dependencies from RStudio Package Manager, and publish Shiny apps using RStudio Connect.

  • R developers can quickly scale underlying compute resources to run large scale data processing and statistical analysis. 

  • Platform administrators can set up user identities, authorization, networking, storage, and security for their data science teams through AWS Single Sign-On and AWS Identity and Access Management integration. This includes connection to private Amazon Virtual Private Cloud (Amazon VPC) resources and internet-free mode with AWS PrivateLink.

  • Integration with AWS License Manager.

For information on the onboarding steps to create a Domain with RStudio enabled, see Onboard to Amazon SageMaker Domain.

For information about the AWS Regions that RStudio on SageMaker is supported in, see Supported Regions and Quotas.

RStudio components

  • RStudioServerPro: The RStudioServerPro app is a multiuser app that is a shared resource among all user profiles in the Domain. Once an RStudio app is created in a Domain, the admin can give permissions to users in the Domain. 

  • RStudio user: RStudio users are users within the Domain that are authorized to use the RStudio license.

  • RStudio admin: An RStudio on Amazon SageMaker admin can access the RStudio administrative dashboard. RStudio on Amazon SageMaker admins differ from "stock" RStudio Workbench admins because they do not have root access to the instance running the RStudioServerPro app and can't modify the RStudio configuration file.

  • RStudio Server: The RStudio Server instance is responsible for serving the RStudio UI to all authorized Users. This instance is launched on an Amazon SageMaker instance.

  • RSession: An RSession is a browser-based interface to the RStudio IDE running on an Amazon SageMaker instance. Users can create and interact with their RStudio projects through the RSession.

  • RSessionGateway: The RSessionGateway app is used to support an RSession.

  • RStudio administrative dashboard: This dashboard gives information on the RStudio users in the Amazon SageMaker Domain and their sessions. This dashboard can only be accessed by users that have RStudio admin authorization.

Differences from RStudio Workbench

RStudio on Amazon SageMaker has some significant differences from RStudio Workbench.

  • When using RStudio on SageMaker, users don’t have access to the RStudio configuration files. Amazon SageMaker manages the configuration file and sets defaults. You can modify the RStudio Connect and RStudio Package Manager URLs when creating your RStudio-enabled Amazon SageMaker Domain.

  • Project sharing, realtime collaboration, and Job Launcher are not currently supported when using RStudio on Amazon SageMaker.

  • When using RStudio on SageMaker, the RStudio IDE runs on Amazon SageMaker instances for on-demand containerized compute resources.

  • RStudio on SageMaker only supports the RStudio IDE and does not support other IDEs supported by an RStudio Workbench installation.