Standards for documenting R-based analyses for reproducibility. Use when writing R Markdown, Quarto documents, READMEs, or inline code comments.
.Rmd or .qmd for analysis reports. Interleave narrative, code, and output.title, author, date: Sys.Date(), and output format.echo, warning, message explicitly for final reports.`r expression` for computed values in text — never hardcode results.R ≥ 4.xtargets::tar_make())roxygen2 documentation for all exported functions.# 7 df/year for long-term trend (Gasparrini 2011)# fit the model# ---- Section Name ---- for RStudio code folding.sessionInfo() or sessioninfo::session_info().renv: Use renv::snapshot() to lock package versions.set.seed() values and what they affect.