R Workflow and Tools

r
workflow
rstudio
git
docker
jupyter
reproducibility
Editors, project setup, code style, Git and GitHub, containers, and helper packages for working in R with RStudio, Positron, or VS Code.
Published

31 October 2026

This guide gathers material on how to work with R day to day: choosing and configuring an editor, organizing projects, styling code, and using Git. Start with the editor and project sections, then add the style and Git guidance as your projects grow. Installing R itself is covered on the R page.

Editors and environments

Projects and files

Code style

  • Tidyverse style guide — The tidyverse team’s guide to naming, spacing, and layout in R code.
  • Pipes, tidyverse style guide — Style guide chapter on how to write sequences of piped operations.
  • styler — Package that reformats R code to follow the tidyverse style guide.
  • lintr — Package that checks R code for style problems and likely errors.

Git and GitHub

Reproducible environments and packages

Keyboard shortcuts and tips

Helper packages and add-ins

Package What it does
pak Installs R packages and their dependencies from the R console
here Builds file paths relative to the project root so scripts run from any folder
reprex Turns a small R example into text you can paste into a GitHub issue or Stack Overflow question
datapasta Pastes copied data into R as code
addinslist Lists RStudio addins and lets you install them from within RStudio
rsthemes Adds full RStudio IDE and syntax themes
progress Draws progress bars in the R terminal
annotater Annotates package load calls such as library() in your scripts