Skip to content

Re-run precompile.R before the next release: vignette output predates the current model code #190

Description

@beckyfisher

Blocked by: #319, #340, #310

#319 stops example8 rendering: the precompile errors at its first fit because
crf() resolves a variable model set in the global environment only. #340 means
a render cannot be attributed to the checkout it was run from, so a re-run
establishes nothing about the branch it was run on. #310 leaves the rendered
output different on every run, so what is committed is not yet a stable record.

Summary

The precompiled vignettes carry output generated in January 2026. The current PR stack (#168#169#172#174#179#185) has since changed code that some of that output depends on, so parts of the published articles now describe behaviour the package no longer has. precompile.R should be re-run before the next CRAN release.

This is a release blocker in the weak sense: shipping is not broken, but it ships documentation that contradicts the code.

What is specifically stale

example1, the beta_binomial section. exp_1b (example1.Rmd.orig:161) fits beta_binomial on the default identity link. #168 fixed the init failure for exactly that combination, so the fit shown was produced by the pre-fix initialisation path.

example2b, the model-suitability prose and models() output. The vignette prints models() at .orig:46 and states that linear-hormesis models "are not suitable for modelling responses that are 0, 1-bounded ... however they are currently allowed". That is the subject of #170, and check_models.R and R/sysdata.rda both changed across the stack. The prose needs re-reading against the current exclusion rules, not just re-knitting.

Figure vintage. example1example4 figures were drawn under an older ggplot2; example6 and the two example2b theoretical-curve figures are ggplot2 4.0.3. A full re-run brings them onto one version.

What is not stale, as far as I can tell

example3 (priors). The changes to define_prior() in the stack are purely additive — a new early-return branch for hurdle families and a new define_hurdle_prior() — so the non-hurdle defaults the vignette documents are unchanged.

Cost, and why it has not been done

A full precompile.R run refits every model in every vignette. #185 deliberately avoided triggering it: that PR fixed the figure device (pdf → png in an html_vignette) and converted the existing figures rather than regenerating them, precisely so a presentation fix would not churn every reported number in the prose. The .orig files there are already correct, so a re-run needs no further preparation — it will produce PNGs natively.

Worth batching with any other vignette work rather than doing on its own. #184 (parallel fitting of the model set) would materially reduce the cost of doing it.

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

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions