Get started with R in SageMaker AI - Amazon SageMaker AI

Get started with R in SageMaker AI

This topic explains how to get started using the R software environment in SageMaker AI. For more information about using R with SageMaker AI, see Resources for using R with Amazon SageMaker AI.

To get started with R in the SageMaker AI console
  1. Create a notebook instance using the t2.medium instance type and default storage size. You can pick a faster instance and more storage if you plan to continue using the instance for more advanced examples, or you can create a bigger instance later.

  2. Wait until the status of the notebook is In Service, and then choose Open Jupyter.

    Location of the InService status and the Open Jupyter link in the console.
  3. Create a new notebook with R kernel from the list of available environments.

    Location of the R kernel in the list of available environments.
  4. When the new notebook is created, you should see an R logo in the upper right corner of the notebook environment, and also R as the kernel under that logo. This indicates that SageMaker AI has successfully launched the R kernel for this notebook.

    Location of the R logo and R kernel of the notebook environment.

Alternatively, when you are in a Jupyter notebook, you can use the Kernel menu, and then select R from the Change kernel submenu.

Location of where to change your notebook kernel to R.