Capstone: An End-to-End Open-Source Submission Pipeline
Putting raw-to-SDTM-to-ADaM-to-TLF together — and your transition roadmap.
Learning objectives
- 1Assemble the full pharmaverse pipeline in one project.
- 2Organize a study repository and run order.
- 3Plan a phased SAS-to-R adoption strategy.
- 4Identify resources for continued learning.
Key SAS® → R comparison
| Task | SAS® | R |
|---|---|---|
| Whole study | SAS macro framework | pharmaverse project + renv |
| Run order | driver program | targets / a run script |
| Deliverables | datasets+TLFs+define | same, fully open-source |
Code examples
/* %run_sdtm; %run_adam; %run_tlf; */# 01_sdtm.R -> dplyr + admiral + xportr
# 02_adam.R -> admiral (ADSL, ADLB, ADAE)
# 03_tlf.R -> rtables/tern/gtsummary + ggplot2
# 04_qc.R -> diffdf + testthat
# renv.lock pins every package versionNote: A clear, numbered run order plus a lockfile makes the whole study reproducible by anyone, anywhere.
Explanation
The capstone ties the course together: a single reproducible project that takes raw data through SDTM, ADaM, and TLFs using the pharmaverse stack, validated with diffdf and testthat and pinned with renv. This is a credible, fully open-source alternative to a SAS macro framework.
Practically, most teams transition in phases — piloting R for QC or for a single domain first, then expanding — so your roadmap should pick a low-risk entry point, build internal validated functions, and grow from there. Pharmaverse, the R Consortium, and the RStudio/Posit clinical resources are excellent places to continue.