Skip to content

Chapters 9, 23 and 26 fail to render from DESCRIPTION (gt missing, parsnip 1.6) #563

Open

Description

@prawalpokharel

Three chapters fail to render in a clean setup installed from DESCRIPTION, which is how build_book.yaml installs packages. All three are frozen, so the published book is fine, but an edit to any of them makes the CI re-execute it.

  1. gt is missing from DESCRIPTION. inference-applications.qmd, line 91 (Chapter 23) calls library(gt), and a clean render stops with "there is no package called 'gt'". Adding gt to Imports fixes it.

  2. parsnip 1.6.1 (current CRAN) errors on fit(..., family = "binomial") with "... must be empty. Problematic argument: family". parsnip 1.4.1 accepted it. This hits four logistic_reg() |> set_engine("glm") |> fit() calls in model-logistic.qmd (Chapter 9) and one in inf-model-logistic.qmd (Chapter 26). The glm engine already uses the binomial family, so the argument can be dropped. The plain glm(..., family = "binomial") calls are fine.

I rendered each chapter on its own, twice, with Quarto 1.4.553 in two clean Ubuntu containers: R 4.5.2 with CRAN as of 2026-03-31 (parsnip 1.4.1), and R 4.6.2 with current CRAN (parsnip 1.6.1). With family removed, Chapters 9 and 26 render in both, and every computed number matches the committed _freeze. The other chapters render and match too.

One thing to know before Chapter 23 is re-run: with gt installed it renders, but the inline p-value for the 16 item display comes out 0.114 in every fresh render, where the freeze has 0.102. The conclusion in the text is the same. I haven't found the cause.

Both changes are in #567.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions