Colophon

This book was written in Quarto using the cosmo theme with local overrides in practicum.scss. R code is executed by knitr and rendered with downlit for function-level hyperlinks.

Body text is set in Source Sans 3 (fallbacks Inter, Helvetica Neue, Arial), and headings and interface elements use the same face. Code is set in JetBrains Mono (fallbacks Fira Mono, Menlo). Syntax highlighting uses the accessibility-tuned arrow palette, which is the same in HTML and PDF output.

PDF output is produced by xelatex with the scrbook document class at 6.5 × 9 inches. The PDF monofont is DejaVu Sans Mono for complete Unicode coverage of box-drawing and mathematical glyphs.

The prose, figures, and exercises are licensed CC BY 4.0. Code blocks printed in the text are MIT; the package code and build scripts are GPL-3. Third-party images are excluded from both and carry their own terms, recorded in Credits. The full statement is in LICENSE.md.

Source available at https://github.com/rgt47/practicum.

Build environment

The lockfile renv.lock at the root of the repository records the package versions the book is meant to be built with. However, this edition was built against the R library installed on the build machine, not a library restored from the lockfile. The repository also contains no Dockerfile for the book, so neither the operating system nor the system libraries are pinned. 9  renv for Package Management and 10  Docker for Reproducibility teach you to close that gap.

The tables below record what was actually used. R generates them when this page is executed, so they cannot drift from the build they describe. Because the book is rendered with Quarto’s freeze option, they describe the last render in which this page was executed.

Table 1: The system that built this edition, recorded at render time.
Component Version
R 4.6.0
R (lockfile) 4.6.1
Platform aarch64-apple-darwin23
Operating system macOS Tahoe 26.6.2
Quarto 1.10.18
Rendered 2026-11-08 12:20 PST
Table 2: Versions of the packages the book attaches most, as used for this build and as recorded in the lockfile.
Package Used Lockfile Match
knitr 1.51 1.51 yes
rmarkdown 2.31 2.31 yes
dplyr 1.2.1 1.2.1 yes
tidyr 1.3.2 1.3.2 yes
readr 2.2.0 2.2.0 yes
ggplot2 4.0.3 4.0.3 yes
purrr 1.2.2 1.2.2 yes
patchwork 1.3.2 1.3.2 yes
gtsummary 2.6.1 not recorded no
naniar 1.1.0 1.1.0 yes
mice 3.19.0 3.19.0 yes
survival 3.8-6 3.8-6 yes
palmerpenguins 0.1.1 0.1.1 yes
tinytest 1.4.3 1.4.3 yes
renv 1.2.3 1.2.3 yes

A ‘no’ in the last column of Table 2 means either that this edition was built with a version other than the one the lockfile records, or that the lockfile does not record the package at all. In both cases a reader who restores the lockfile will not get the environment that produced this book. This is the kind of silent failure that habit 4 exists to make loud.