moderndive/ModernDive_book
About
Statistical Inference via Data Science: A ModernDive into R and the Tidyverse
DataMeasured star growth
- in 24h
- 0
- in 7 days
- -2
- in 15 days
- Collecting history
- in 1 month
- Collecting history
Net star changes over overlapping periods, not daily totals. Missing measurements are left blank. Stars measure attention, not software quality.
README.md
OriginalModernDive 
Welcome to the GitHub repository page for Statistical Inference via Data Science: A ModernDive into R and the Tidyverse.
- Second Edition (current): moderndive.com/v2/ — also available in print from CRC Press.
- First Edition (archived): moderndive.com.

Branches and Source
The book has been migrated from bookdown to Quarto. As of v2.1.0, the live build pipeline uses Quarto.
| Branch | Source format | Status | Deploys to |
|---|---|---|---|
v2-quarto-html |
Quarto (.qmd) |
Active development for the next release of the Second Edition. | v2-publish branch (preview). |
v2 |
bookdown (.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/). |
master |
bookdown (.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:
- Install Quarto (≥ 1.4).
- Install R (the build was developed against R 4.5.2).
- From the repo root, run
renv::restore()to set up the locked R package environment. - Run
quarto previewfor live reload, orquarto renderfor a one-shot HTML build intodocs/.
The master branch (First Edition) still uses bookdown; building it requires install.packages("bookdown") and bookdown::render_book("index.Rmd").
More Information
- The
moderndiveR package — datasets, helpers, andget_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).
Explore related projects
Loading…