Use RStudio on Amazon SageMaker - Amazon SageMaker

Use RStudio on Amazon SageMaker

With RStudio support in Amazon SageMaker, you can put your production workflows in place and take advantage of SageMaker features. The following topics show how to launch an RStudio session and complete key workflows. For information about managing RStudio on SageMaker, see Manage RStudio on Amazon SageMaker.

For information about the onboarding steps to create an Amazon SageMaker domain with RStudio enabled, see Amazon SageMaker domain overview

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

Collaborate in RStudio

To share your RStudio project, you can connect RStudio to your Git repo. For information on setting this up, see  Version Control with Git and SVN.

Note: Project sharing and realtime collaboration are not currently supported when using RStudio on Amazon SageMaker. 

Base R image

When launching your RStudio instance, the Base R image serves as the basis of your instance. This image extends the r-session-complete Docker image. 

This Base R image includes the following:

  • R v4.0 or higher

  • awscli, sagemaker, and boto3 Python packages

  • Reticulate package for R SDK integration

RSession application colocation

Users can create multiple RSession applications on the same instance. Each instance type supports up to four colocated RSession applications. This applies to each user independently. For example, if two users create applications, then SageMaker allocates different underlying instances to each user. Each of these instances would support 4 RSession applications.

Customers only pay for the instance type used regardless of how many Rsession applications are running on the instance. If a user creates an RSession with a different associated instance type, then a new underlying instance is created.