Select your cookie preferences

We use essential cookies and similar tools that are necessary to provide our site and services. We use performance cookies to collect anonymous statistics, so we can understand how customers use our site and make improvements. Essential cookies cannot be deactivated, but you can choose “Customize” or “Decline” to decline performance cookies.

If you agree, AWS and approved third parties will also use cookies to provide useful site features, remember your preferences, and display relevant content, including relevant advertising. To accept or decline all non-essential cookies, choose “Accept” or “Decline.” To make more detailed choices, choose “Customize.”

Resources for using R with Amazon SageMaker AI

Focus mode
Resources for using R with Amazon SageMaker AI - Amazon SageMaker AI

This document lists resources that can help you learn how to use Amazon SageMaker AI features with the R software environment. The following sections introduce SageMaker AI's built-in R kernel, explain how to get started with R on SageMaker AI, and provide several example notebooks.

The examples are organized in three levels: beginner, intermediate, and advanced. They start with Getting Started with R on SageMaker AI, continue with end-to-end machine learning with R on SageMaker AI, and then finish with more advanced topics such as SageMaker Processing with R script, and bring-your-own R algorithm to SageMaker AI.

For information on how to bring your own custom R image to Studio, see Bring your own SageMaker image. For a similar blog article, see Bringing your own R environment to Amazon SageMaker Studio.

RStudio support in SageMaker AI

Amazon SageMaker AI supports RStudio as a fully-managed integrated development environment (IDE) integrated with Amazon SageMaker AI domain. With RStudio integration, you can launch an RStudio environment in the domain to run your RStudio workflows on SageMaker AI resources. For more information, see RStudio on Amazon SageMaker AI.

R kernel in SageMaker AI

SageMaker notebook instances support R using a pre-installed R kernel. Also, the R kernel has the reticulate library, an R to Python interface, so you can use the features of SageMaker AI Python SDK from within an R script.

Example notebooks

Prerequisites

Beginner Level

Intermediate Level

Advanced Level

  • Train and Deploy Your Own R Algorithm in SageMaker AI – Do you already have an R algorithm, and you want to bring it into SageMaker AI to tune, train, or deploy it? This example walks you through how to customize SageMaker AI containers with custom R packages, all the way to using a hosted endpoint for inference on your R-origin model.

PrivacySite termsCookie preferences
© 2025, Amazon Web Services, Inc. or its affiliates. All rights reserved.