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 through Posit Workbench. For more information about Posit Workbench, see the Posit website.

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.

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 IAM Identity Center 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 Amazon SageMaker domain overview.

Region availability

The following table gives information about the AWS Regions that RStudio on SageMaker is supported in.

Region name


US East (Ohio)


US East (N. Virginia)


US West (N. California)


US West (Oregon)


Asia Pacific (Mumbai)


Asia Pacific (Seoul)


Asia Pacific (Singapore)


Asia Pacific (Sydney)


Asia Pacific (Tokyo)


Canada (Central)


Europe (Frankfurt)


Europe (Ireland)


Europe (London)


Europe (Paris)


Europe (Stockholm)


South America (São Paulo)


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" Posit 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 Posit Workbench

RStudio on Amazon SageMaker has some significant differences from Posit 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 a Posit Workbench installation.

  • RStudio on SageMaker only supports the RStudio version specified in Upgrade the RStudio Version.