ModernDive

May 12, 2026 · View on GitHub

DOI Lifecycle: stable GitHub Actions Deployment

Welcome to the GitHub repository page for Statistical Inference via Data Science: A ModernDive into R and the Tidyverse.

Branches and Source

The book has been migrated from bookdown to Quarto. As of v2.1.0, the live build pipeline uses Quarto.

BranchSource formatStatusDeploys to
v2-quarto-htmlQuarto (.qmd)Active development for the next release of the Second Edition.v2-publish branch (preview).
v2bookdown (.Rmd)Canonical build of the Second Edition currently served at moderndive.com/v2/. Will be superseded by v2-quarto-html after merge.gh-pages/v2/ (live: moderndive.com/v2/).
masterbookdown (.Rmd)First Edition source.gh-pages (live: moderndive.com).

The source for previously released versions is on the Releases page. A summary of all changes between versions is in NEWS.md.

Building the Book Locally

To render the Second Edition locally from the v2-quarto-html branch:

  1. Install Quarto (≥ 1.4).
  2. Install R (the build was developed against R 4.5.2).
  3. From the repo root, run renv::restore() to set up the locked R package environment.
  4. Run quarto preview for live reload, or quarto render for a one-shot HTML build into docs/.

The master branch (First Edition) still uses bookdown; building it requires install.packages("bookdown") and bookdown::render_book("index.Rmd").

More Information

  • The moderndive R package — datasets, helpers, and get_regression_*() functions used throughout the book.
  • The instructor resources page with sample problem sets and term projects.
  • Sign up for the mailing list for periodic ModernDive updates (roughly every 3 months).