RStudio On SageMaker

2 min read sagemaker, machine-learning

Written in 2022. Tools, APIs and prices may have changed since.

Lab note What I wrote down while learning this by building with it. Short by design; the code is in pfeilbr/rstudio-on-sagemaker-playground.

learn RStudio on Amazon SageMaker

Notes

  • fully managed and self-serve RStudio solution. elimiinates administrative overhead.
  • access to scalable AWS resources
  • provides R users with native environment withing SageMaker
  • direct access to all tools SageMaker offers (via reticulate)
  • fully integrated with SageMaker ecosystem. e.g. Access to SageMaker Built-In Algorithms
  • browser based RStudio workbench
  • launch RStudio app w/in SageMaker Domain
  • launch RStudio session
    • select ec2 instance type
  • session has user home directory backed by s3
  • installed R pkgs are preserved in home dir
  • every session uses same home dir
  • develop shiny apps, etc. plumber apis
  • R reticulate package offers integration with python for working with SM easily from R
    • import py package and ref from r variable. proxies calls from r to py
  • coming soon
    • custom images for RStudio Workbench
    • RStudio Connect managed by SageMaker

      RStudio Connect is a publishing platform for the work your teams create in R and Python. RStudio Connect allows you to share the following, and more, in one convenient place: Shiny applications. R Markdown reports. Plumber APIs.

Screenshots

Launch RStudio from SM Domain


Creating new session in Studio Workbench


Workbench UI


Shiny App Example


Plumber API Example


R Integration with Boto3 SageMaker package via R reticulate package


Running SageMaker Training Job from R


Deploying SageMaker Real-time Predication API Endpoint


Resources

Keep learning

Get new guides and courses by email

An occasional email when I publish a new guide, course or post. No spam, and you can unsubscribe any time.

Sent with Buttondown. I never share your address. Prefer a feed? Use the RSS feed.