Study Group, 6 Verbs, IDEs, Pipes
2026-07-07
Web References
Material is organized into “verb” folders representing key stages of the data science workflow:
Additional resources located in the R directory:
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.
SQLite and the dplyr/dbplyr interface.lm).broom, car, or emmeans packages.Rprof and profvis.traceback, interactive browser sessions, and RMarkdown breakpoints.VS 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 Language