Building your own R Data Science Lab in the browser

R
docker
Author

Dean Marchiori

Published

March 15, 2023

Most R users probably just run RStudio Desktop from Posit on their local computers. This involves manually installing R, RStudio and all other packages.

However it is often the case that users are operating in a restricted computing environment, such as in a corporate or government setting. Alternatively you may wish to create a custom development environment to test or replicate some other specific setup. This is a good case to move away from locally managed software to containerization, such as Docker.

I have set up a Github repository that sets up a local data science development environment in the browser.

It builds a docker container including:

The image builds on the rocker/verse image from Rocker Project.

Some other enhanced configuration options are included in the Dockerfile, such as preloading you RStudio preferences to get the same look and feel you have locally, the option to install other CRAN packages & mounting local volumes to persist your work locally.

Go here for Step by step instructions:

https://github.com/deanmarchiori/ds-env-setup