Get started with R in SageMaker - Amazon SageMaker

Get started with R in SageMaker

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

To get started with R in the SageMaker 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 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.