Published May 15, 2026 | Version v1.0.0

Reproducible R Workflow Demo

Authors/Creators

  • 1. California Department of Water Resources

Description

v1.0.0 — Initial release

This is the first public release of Reproducible R Workflow Demo, a worked example and teaching resource for building reproducible R analysis workflows.

What's included

Analysis pipeline

A complete targets pipeline using the Palmer penguins dataset, covering data loading, cleaning, summary statistics, visualization, and a simple linear regression. All outputs are produced by targets::tar_make() and consumed by a rendered Quarto report.

Environment management

A committed renv.lock file so learners can reproduce the exact package environment with a single call to renv::restore().

Continuous integration

Two GitHub Actions workflows:

  • run-targets.yaml — restores the renv environment and runs the full pipeline on every push and pull request to main
  • publish-slides.yaml — renders the Revealjs slide deck and deploys it to GitHub Pages whenever slides/ changes

Teaching materials

  • A Revealjs slide deck introducing targets, renv, and GitHub Actions, published to GitHub Pages
  • A suggested live demo script (notes/demo-script.md)
  • A YAML primer for newcomers (notes/yaml-primer.md)
  • Inline comments in all workflow files explaining each step

Getting started

renv::restore()            # restore package environment
targets::tar_make()        # run the pipeline
targets::tar_visnetwork()  # inspect the dependency graph

See the README for full setup instructions.

Notes

If you use this material, please cite it as below.

Files

lucy-dwr/reproducible-r-workflow-demo-v1.0.0.zip

Files (1.4 MB)

Name Size
md5:03e6479b308cab45f51e978de98e887f
1.4 MB Preview Download

Additional details

Related works