Foundations series

From R development to R engineering

The first series in the R Engineering Playbook: fourteen posts on the practices around R code, covering identities, git, hooks, CI, secrets, releases, dependencies, decision records and working with AI agents. Each post shows how a typical web project does it and how to do the same in an R package or Shiny app. Read them in order, or jump to what you need.

Parts in this series

16 parts
#PartPublished
01
Identity & environment isolation
Isolate git identities, SSH keys, and environment variables across personal, work, and client projects on one machine.
Published 2026-09-26
2026-09-26
02
Git workflow: branches, squash-only merges, signed commits
A predictable branch-and-PR workflow for R teams with branch protection, squash merges, and signed commits.
Published 2026-09-26
2026-09-26
03
Conventional commits & PR title checks
Structure commit messages and PR titles to automate changelogs and trace changes back to requirements.
Published 2026-09-26
2026-09-26
04
Pre-commit hooks, formatting & linting
Catch syntax errors, stale documentation, and styling differences automatically before code reaches review.
Published 2026-09-26
2026-09-26
05
CI with GitHub Actions
Run R CMD check, tests, and link validation automatically on clean GitHub Actions runners with pinned dependencies.
Published 2026-09-26
2026-09-26
06
Secret scanning with gitleaks
Scan commits and history for accidental credentials before code leaves your machine and on CI.
Published 2026-09-26
2026-09-26
07
Secrets management
Separate configuration names in version control from secrets stored in vaults and environment variables.
Published 2026-09-26
2026-09-26
08
Issue forms, PR templates, labels & milestones
Use structured issue forms, PR templates, and labels to capture reproducible examples and review criteria up front.
Published 2026-09-26
2026-09-26
09
Releases & changelogs
Adopt semantic versioning, readable changelogs, and annotated git tags to support change control.
Published 2026-09-26
2026-09-26
10
Dependency updates, runtime pinning & package vetting
Manage dependencies through lockfiles, runtime pinning, and package vetting for reproducible R environments.
Published 2026-09-26
2026-09-26
11
Test your guardrails: probe PRs
Challenge CI checks and pre-commit hooks deliberately with failing test PRs to prove guardrails work.
Published 2026-09-26
2026-09-26
12
ADRs & evidence: record decisions, verify docs
Record architectural decisions with ADRs and verify technical documentation against upstream evidence.
Published 2026-09-26
2026-09-26
13
Repo hygiene files
Use standard repository hygiene files like README, LICENSE, and CONTRIBUTING to answer questions before they are asked.
Published 2026-09-26
2026-09-26
14
Handoffs & agentic context
Provide AI coding agents with durable project instructions and concise handoffs instead of endless chat history.
Published 2026-09-26
2026-09-26
15
Companion code: show it, link it, test it
How to ship runnable companion scripts in Quarto docs: the include shortcode pattern, path rules, and CI checks that catch unlinked files.
Published 2026-09-27
2026-09-27
16
It worked locally: two hosting bugs every check missed
A static Quarto site passed every local link and render test, but failed in a PR preview: how trailing slashes and unconfigured MIME types break hosted assets.
Published 2026-09-27
2026-09-27
No matching items