Skip to content

docs: update vignettes for accuracy and current features - #576

Open
billdenney wants to merge 1 commit into
mainfrom
claude/vignette-updates
Open

docs: update vignettes for accuracy and current features#576
billdenney wants to merge 1 commit into
mainfrom
claude/vignette-updates

Conversation

@billdenney

Copy link
Copy Markdown
Member

Summary

From a consistency review of all 19 vignettes against the PKNCA book, with every behavioral claim tested against the current package.

Corrections (vignette text contradicted the implementation): v03's duration-selection rule now describes actual filter_interval() behavior and its two illustrating figures render again (two plotting-helper bugs); v05's partial-AUC section is rewritten around aucint.*, retiring an eight-year-old "future version" promise; v06-tobit's automatic point selection matches the code (λz filter first, residual-SD criterion with the n-points penalty, ties to most points); v20 names the real superposition() arguments (method/auc.type — the documented interp.method/extrap.method never existed and error if used); v22's stepwise-linear window moves forward as the code does; v30 no longer suggests text values for the logical exclude_half.life/include_half.life columns (silently excludes nothing); v07-post-processing drops deprecated not.requested.string.

Currency (features with book coverage but no vignette prose): v01 gains units, lloq/Tobit, route, and as.data.frame()/CDISC pointers plus accurate update() semantics; v04 gains sparse AUMC + the five derived parameters and the df/BLQ-zeroing/linear-only notes; v07-unit-conversion gains allow_partial_missing_units and the PKNCAdata units-table method; v07-post-processing gains get_halflife_points() and the exclusion-reason override note; v08 documents each start_* method, the chain-collapse caveat, and end_conc_drop; v21 enumerates its event types, generated from the package internals with a stopifnot gate so the list cannot drift.

Verification

Every edited vignette purled and executed end-to-end against the installed dev build; v03 figures render-verified (segments + legend correct); all corrected behavioral claims reproduced empirically before writing.

A companion set of drafted issues covers the code-side problems documentation cannot fix (duration doc-vs-code, start_conc0 overwrite, sparse options forwarding, a superposition() infinite loop, and others).

🤖 Generated with Claude Code

From a consistency review of all 19 vignettes against the PKNCA book,
with every behavioral claim tested against the current package.

Corrections: v03's duration-selection text now describes the actual
filter_interval() behavior (selection by collection start time only)
and its two illustrating figures draw again (logical-indexing and
inverted-comparison bugs fixed); v05's partial-AUC section is rewritten
around the aucint.* family, retiring an eight-year-old "future version"
promise; v06-tobit's automatic point selection now matches the
implementation (lambda-z filter first, then minimize the residual-SD
criterion with the n-points penalty, ties to the most points);
v20 names the real superposition arguments (method/auc.type — the
documented interp.method/extrap.method never existed); v22's
stepwise-linear description now moves the window start forward as the
code does; v30 no longer tells readers to put text in the logical
exclude_half.life/include_half.life columns (which silently excludes
nothing); v07-post-processing drops the deprecated
not.requested.string.

Currency: v01 gains units, lloq/Tobit, route, and as.data.frame/CDISC
pointers plus accurate update() semantics; v04 gains sparse AUMC, the
five derived parameters, and the df/BLQ-zeroing/linear-only behavior
notes; v07-unit-conversion gains allow_partial_missing_units and the
PKNCAdata units-table method; v07-post-processing gains
get_halflife_points() and the exclusion-reason override note; v08
documents each start_* method, the chain-collapse caveat, and
end_conc_drop; v21 finally enumerates its event types (generated from
the package so it cannot drift).

Every edited vignette was chunk-extracted and executed against the
installed package; v03's figures were additionally render-verified.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant