Skip to content

docs: correct registry description strings to match the implementation - #597

Merged
billdenney merged 1 commit into
mainfrom
582-fix-description-strings
Aug 20, 2026
Merged

docs: correct registry description strings to match the implementation#597
billdenney merged 1 commit into
mainfrom
582-fix-description-strings

Conversation

@billdenney

Copy link
Copy Markdown
Member

Fixes #582. Replaces #590, which predates the 40-character desc limit — its
replacement strings run 63–243 characters and conflict in 9 places.

  • adj.r.squared.factor described itself as a factor multiplied by the
    number of data points and added to the adjusted r². The code instead accepts
    every regression whose adjusted r² is within adj.r.squared.factor of the
    best and picks the one using the most points. Built by paste() for
    PKNCA.options(), so not subject to the length limit.
  • span.ratio described itself as half-life ÷ duration, the inverse of
    what half.life.R computes: (max(time) - min(time))/half.life. The roxygen
    for pk.calc.half.life() already had it right, so the registry string also
    contradicted the manual page.
  • The eight dose-aware aucint*/aumcint* parameters ending in .dose
    described themselves as AUCdn/AUMCdn. Here dn means dose normalized
    (auclast.dn, aucinf.obs.dn), while these use dose-aware interpolation —
    as their own pretty_name has always said. All replacements fit in 40 chars.

The aucint.inf/aumcint.inf copy-paste that #590 also fixed is already
correct on main; the new tests pin it. Tests enumerate the parameter sets
rather than listing cases, so a newly added interval parameter is covered.

Fixes #582.  Replaces #590, which predates the 40-character desc limit and
whose replacement strings run 63-243 characters.

adj.r.squared.factor described itself as a factor multiplied by the number
of data points and added to the adjusted r^2.  The code instead accepts every
regression whose adjusted r^2 is within adj.r.squared.factor of the best and
picks the one using the most points.  This string is built by paste() for
PKNCA.options() and is not subject to the desc length limit.

span.ratio described itself as the half-life divided by the calculation
duration, the inverse of what half.life.R computes:
  ret$span.ratio <- (max(data$time) - min(data$time))/ret$half.life
The roxygen for pk.calc.half.life() already described it the correct way, so
the registry string also contradicted the manual page.

The eight dose-aware aucint*/aumcint* parameters ending in .dose described
themselves as AUCdn/AUMCdn.  In this package `dn` means dose normalized
(auclast.dn, aucinf.obs.dn), while these parameters use dose-aware
interpolation -- as their own pretty_name has always said.  All replacements
are within the 40-character limit.

The aucint.inf/aumcint.inf copy-paste that #590 also fixed is already correct
on main; the new tests pin it so it stays that way.  Tests enumerate the
parameter sets rather than listing cases, so a newly added interval parameter
is covered automatically.

Co-Authored-By: Claude Opus 5 <[email protected]>
@billdenney
billdenney merged commit 34a0394 into main Aug 20, 2026
7 checks passed
@billdenney
billdenney deleted the 582-fix-description-strings branch August 20, 2026 17:09
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.

Three registry/option description strings contradict the implementation (adj.r.squared.factor, span.ratio, aucint.inf.*)

1 participant