In many R projects reports are made by copying: numbers from the console, charts as screenshots and tables retyped by hand. R analysis with coding agents can change that, provided you know where agents make typical mistakes in R, for instance with grouping, factor levels or missing values. In this training you have an agent write data pipelines with dplyr and tidyr, build charts with ggplot2 and pull everything into Quarto reports. With renv and testthat the project stays reproducible, and a fixed review routine ensures that every number in the report comes from the code.
Who the R training is for
Statisticians, researchers, evaluation teams and lecturers who work in R, know the tidyverse and want to use coding agents for analyses and reports.
What you'll walk away with
- Hand an R project to a coding agent with an instruction file, folder structure and renv
- Have data pipelines written with dplyr and tidyr and recognise typical errors with grouping and missing values
- Create ggplot2 charts in a consistent style for reports and presentations
- Build Quarto reports in which every number and chart comes straight from the code
- Secure functions with testthat and re-render reports automatically when new data arrives
Typical scenarios
- An evaluation team produces its recurring report on an education programme as a Quarto document that updates with a single command when new data comes in.
- In an analysis of course evaluations, review reveals that the agent left a group_by in place, so later summaries were computed per group rather than overall.
- For a statistics lecture, an existing R script becomes a Quarto website with sample data and calculation steps students can follow.
Does this fit your team?
Pick a few dates that suit you. The request is non-binding, and the agenda is tailored in a short call beforehand.
What the R training covers
- Making an R project agent-readyProject structure, renv, an instruction file with style rules and commands for rendering and tests.
- Pipelines with dplyr and tidyrReshape, group and summarise data, and spot typical agent errors with grouping, joins and factor levels.
- Charts with ggplot2A team theme, labelling, accessible colours and reusable chart functions.
- Reports with QuartoInline values instead of copied numbers, tables, cross-references and output as HTML, PDF or Word.
- Tests and maintenanceSecuring functions with testthat, data checks before rendering and applying package updates in a controlled way with renv.
- Review and handoverChecking agent changes in R, reviewing reports before they go out and handing projects over to colleagues.
Before the R training: prerequisites
- Experience with R and a basic knowledge of the tidyverse
- R, Quarto and RStudio or VS Code installed on your laptop
- A coding agent and, optionally, a data set of your own without personal data
Materials you keep
- A project template with renv, an instruction file and a Quarto report
- A ggplot2 theme and reusable chart functions for your team
- A review checklist for agent changes in R projects