A ranked comparison of R dev containers that work great in VS Code, both locally with Docker and remotely via GitHub Codespaces.
- VS Code support: Yes β fully usable without RStudio Server
- Local: Works via Docker + VS Code
- Codespaces: Fully supported
- Includes: R, RStudio Server (optional), Quarto CLI, renv, tidyverse, devtools, languageserver
- π§ Workshop-ready with teaching tools included
git clone https://github.com/revodavid/devcontainers-rstudio.git
cd devcontainers-rstudioOpen the folder in VS Code and run: Dev Containers: Reopen in Container
- Open: revodavid/devcontainers-rstudio
- Click: Code β Codespaces β New codespace
- VS Code support: Yes
- Local: Supported via Docker
- Codespaces: Optimized for GitHub Codespaces
- Includes: Fast R setup using
r2u, tidyverse, quarto, devtools, and more - β‘ CRAN packages install almost instantly via
apt
git clone https://github.com/grantmcdermott/codespaces-r2u.git
cd codespaces-r2uOpen in VS Code and reopen in container.
- Open: codespaces-r2u
- Click: Code β Codespaces β New codespace
-
VS Code support: Yes
-
Local & Codespaces: Supported
-
Includes: A collection of starter templates:
r-verβ Base Rr2uβ Fast CRANr-develβ Development builds
These are templates, not full dev environments β you build on top of them.
devcontainer templates apply- Minimal example for trying R in dev containers
- Good for exploration, not full workflows
- Tutorial-oriented
- Less complete than
devcontainers-rstudio - Still good for teaching small workshops
Want a minimal container with:
- R + VS Code (no RStudio)
- tidyverse, data.table, devtools
- Quarto support
- Pre-installed extensions or Git hooks?
Let me know β I can help scaffold a clean, shareable dev environment tailored to your needs.
Let me know if you'd like this saved as a README.md or injected into a repo.