Harsh Verma
  • R Engineering Playbook
  • Series
    • All series

    • Foundations
    • Testing
    • Pharma
    • R package development
  • InsightSurge

Series

Longer topics, written in order. Each series has its own numbered index.

16 parts

Foundations

From R development to R engineering

Build the everyday practices around R code: safe identities, version control, CI, releases, dependencies and decisions. Each part connects a web-repo practice to work in an R package or Shiny app.

Covers
  • Git and collaboration
  • CI and releases
  • R environments
Latest part 2026-09-27 Open series →
7 parts WIP

Testing

Tests for R code, R packages and Shiny apps

Move from unit tests to snapshots, fixtures, property-based checks and Shiny app tests. The parts show how to make those checks repeatable in R projects.

Covers
  • testthat and fixtures
  • Shiny testing
  • Property-based checks
Latest part 2026-09-27 Open series →
7 parts WIP

Pharma

Clinical reporting with R

Follow R through clinical reporting, from the data pipeline to tables, figures, listings and analysis results metadata. The parts show where open-source R packages fit in that work.

Covers
  • Clinical pipeline
  • TFL generation
  • Results metadata
Latest part 2026-09-27 Open series →
4 parts WIP

R package development

From a first package to classes and compiled code

Turn scripts into a package, then document, check, share and evolve it. The later parts cover object systems and compiled code.

Covers
  • Package structure and R CMD check
  • Documentation and dependencies
  • Sharing, deprecation and advanced topics
Latest part 2026-09-29 Open series →
No matching items

Coming soon

agenticAgentic RWorking with AI coding agents on R and Shiny code: context files, skills, tests as the only gate, and keeping clinical data out of prompts.
pharmaShiny in regulated environmentsShiny apps whose results need evidence: the app as a package, traceability from requirements to tests, logging, and reproducible deploys.
pharmaSAS to R migrationMoving clinical programs from SAS to R: reading SAS files, rounding and date differences, common PROC steps in R, and comparing outputs.
engineeringR in productionRunning R reliably: renv and package-manager snapshots in depth, containers, shared computing environments, scheduled jobs and monitoring.
engineeringReporting and docs as codeParameterised Quarto reports, one brand across Quarto, Shiny and ggplot2, and pkgdown as the manual for a package.
pharmaPharma datasetsBuilding SDTM and ADaM datasets from specifications: metadata as code, admiral in depth, and define.xml.
Harsh Verma beside the words All series: Longer topics, written in order

© 2026 Harsh Verma

Cookie Preferences

Built with Quarto · Glossary · Privacy · Licence · RSS · R-bloggers