Open RStudio Launcher and launch RSessions - Amazon SageMaker

Open RStudio Launcher and launch RSessions

The following topics show how to use the RStudio Launcher to launch RSessions.

Open RStudio Launcher

Open RStudio Launcher from the Amazon SageMaker Console

  1. Open the Amazon SageMaker console at https://console.aws.amazon.com/sagemaker/.

  2. Navigate to the Control Panel.

  3. After your user has been created, select Launch app.

  4. Select either Studio or RStudio to launch a new app of that type.

Open RStudio Launcher from the AWS CLI

The procedure to open the RStudio Launcher using the AWS CLI differs depending on the method used to manage your users.

IAM Identity Center

  1. Use the AWS access portal to open your Amazon SageMaker Domain.

  2. Modify the URL path to “/rstudio/default” as follows.

    #Studio URL https://<domain-id>.studio.<region>.sagemaker.aws/jupyter/default/lab #modified URL https://<domain-id>.studio.<region>.sagemaker.aws/rstudio/default

IAM

To open the RStudio Launcher from the AWS CLI in IAM mode, complete the following procedure.

  1. Create a presigned URL using the following command.

    aws sagemaker create-presigned-domain-url --region <REGION> \ --domain-id <DOMAIN-ID> \ --user-profile-name <USER-PROFILE-NAME>
  2. Append &redirect=RStudioServerPro to the generated URL.

  3. Navigate to the updated URL.

Launch RSessions

After you’ve launched the RStudio Launcher, you can create a new RSession.

  1. Select New Session.

  2. Enter a Session Name.

  3. Select an instance type that your RSession runs on. This defaults to ml.t3.medium.

  4. Select an Image that your RSession uses as the kernel.

  5. Select Start Session.

  6. After your session has been created, you can start it by selecting the name. 

Suspend your RSessions

  1. From the RStudio Launcher, identify the RSession that you want to suspend.

  2. Select Suspend for the session.

Delete your RSessions

  1. From the RStudio Launcher, identify the RSession that you want to delete.

  2. Select Quit for the session. This opens a new Quit Session window.

  3. From the Quit Session window, select Force Quit, to end all child processes in the session.

  4. Select Quit Session to confirm deletion of the session.