Skip to content

Release preparation for version 0.12.2#523

Open
billdenney wants to merge 7 commits intomainfrom
v0.12.2
Open

Release preparation for version 0.12.2#523
billdenney wants to merge 7 commits intomainfrom
v0.12.2

Conversation

@billdenney
Copy link
Copy Markdown
Member

No description provided.

billdenney and others added 7 commits March 23, 2026 00:07
…dup)

Three targeted improvements with no functionality change:

1. pk.calc.half.life: pre-build the two-column data.frame passed to
   fit_half_life() once before the loop rather than reconstructing it
   on every iteration.  For a subject with N eligible post-tmax points
   this reduces data.frame() calls in that loop from N to 1.

2. pk.nca.intervals: accumulate interval results in a list and combine
   with dplyr::bind_rows() at the end instead of growing a data.frame
   via repeated rbind().  For analyses with multiple dosing intervals
   per subject the old pattern caused quadratic copy overhead.

3. pk.nca.intervals: hoist the PKNCA.options()$debug lookup out of the
   per-interval loop.  The options object passed in is already the
   fully-merged options (assembled once in pk.nca()), so there is no
   need to re-query the package environment on every iteration.

Benchmarked on 200 subjects x 12 time points x 10 reps (single interval,
auclast/cmax/tmax/half.life/tlast): median 2.46s -> 2.23s (~10% faster).
The rbind fix provides additional gains for multi-interval analyses.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replace [Quick Start](Quick Start) with [Quick Start](#quick-start) to
produce a valid in-document anchor rather than a file URI, resolving the
CRAN NOTE about an invalid file URI in inst/doc/v01-introduction-and-usage.html.

Co-Authored-By: Claude Sonnet 4.6 <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