Study Groups, Radian in VS Code, and Core Workflows
2026-06-18
Web References
Material is organized into “verb” folders representing key stages of the data science workflow:
Additional resources located in the repository root directory:
data: Local sample folders.Tip
Many thanks to Douglas Bates and the COMBEE Study Group for co-teaching and sharing the early versions of these materials in 2014–2017.
tidyverse / intro_dplyr / data_tablespurrr: List/vector iteration mapping (map & transpose).species: Integrated dplyr, tidyr, and purrr workflow.string / regex / filesurveys_ggplot.Rggplot2.Rmdvisualize.mdgraphics.mdshiny.RmdSQLite, DBI, dbplyr, RDS, or feather formats.Rmarkdown.md / RmarkdownExample.Rmdfunction.Rmdpackage.Rmdgithub.mddatabase.md / SQLiteDplyr.Rmdwriting.mdlm).broom, car, or emmeans packages.linear_model.RmdFormulas.Rmdcorrelate.Rmdcovary.Rmdsysgen.mdRprof and profvis.traceback, interactive browser sessions, and RMarkdown breakpoints.profile.Rmd / lineprof.Rmdsimulate.Rmd: Simulation studies (Doug Bates).SimSpeed.Rmd / LmSimulation.Rmdlinux.md / beyondR.mddocker.mdlatex.mdreproducible.mdscaling_up.mdVS Code has become a highly customizable IDE for R programming, matching RStudio functions:
prompt_toolkit to provide:
AI Environments Note
Radian is not always seamless within terminal-based AI environments (like cursor or terminal agents). It can interfere with the interactive memory or command execution of these tools. Use Posit’s RStudio if debugging issues.
Add the following settings to your VS Code settings.json and system path:
// Define binary path based on OS
"r.rterm.mac": "/usr/local/bin/radian",
"r.rterm.linux": "/usr/local/bin/radian",
"r.rterm.windows": "C:\\Users\\<username>\\AppData\\Local\\Programs\\Python\\Python310\\Scripts\\radian.exe",
// Set console behaviors
"r.bracketedPast": true,
"r.alwaysUseActiveTerminal": true, // Run code (CTRL + ENTER) in current terminal
"r.rterm.option": [
"--no-save",
"--no-restore",
"--quiet",
"--r-binary=/usr/local/bin/radian"
],
"r.sessionWatcher": true,
"r.sessionWatcher.showSavePrompt": falseIn your .Rprofile home file, disable automatic completion-on-type to prevent latency:
|> vs Magrittr %>%Pipes chain multiple nested function calls into sequential, readable steps.
%>%)magrittr or dplyr.. placeholder.Key Resource
Check the tidyverse blog post Base R (4.1+) |> vs magrittr %>% pipe for detailed performance differences.
| Feature | magrittr Pipe (%>%) |
Native Pipe (|>) |
|---|---|---|
| Availability | Requires library(magrittr) or tidyverse |
Built-in base R since version 4.1 |
| Execution Speed | Slower (function wrapper wrapper) | Faster (parsed directly to standard calls) |
| Placeholder | Support for . placeholder anywhere |
Support for _ placeholder (R 4.2+, named args only) |
| Syntax Errors | Caught during runtime | Caught during parsing |
| Debugging | Deep nested stack traces | Standard simple stack traces |
R for the Data Sciences