Skip to content

Finish the checkmate/rlang migration leftovers from #548 - #600

Merged
billdenney merged 1 commit into
mainfrom
nocov-and-stop-cleanup
Aug 21, 2026
Merged

Finish the checkmate/rlang migration leftovers from #548#600
billdenney merged 1 commit into
mainfrom
nocov-and-stop-cleanup

Conversation

@billdenney

Copy link
Copy Markdown
Member

Three items were prepared while #548 was open but did not land before it merged.

Five rlang::abort() calls carrying # nocov are collapsed onto one line, so the marker is a trailing comment rather than a # nocov start / # nocov end bracket. interpolate.conc.R drops from three bracketed regions to none.

The last two base stop() calls left by #548's sweep -- in prepare_data.R and time.above.R -- become classed rlang::abort() calls, and time.above.R's multi-argument message becomes a sprintf template so the text can be grepped for.

Redundant .var.name arguments are dropped where they repeat what checkmate already reports. The fifteen that remain are kept deliberately: the thirteen in PKNCA.options.R would degrade to "Assertion on 'x'", prepare_data.R's would report unlist(cols), and superposition.R's disambiguates a checkmate::assert() with two candidate checks.

Not covered here: R/bioequivalence.R and the conditions added by #588 to R/superposition.R both use base stop()/warning(). They arrived after #548's merge base and are a separate migration.

Three items were prepared while #548 was open but did not land before it
merged.

Five rlang::abort() calls carrying `# nocov` are collapsed onto one line, so
the marker is a trailing comment rather than a `# nocov start` / `# nocov end`
bracket.  interpolate.conc.R drops from three bracketed regions to none.

The last two base stop() calls left by #548's sweep -- in prepare_data.R and
time.above.R -- become classed rlang::abort() calls, and time.above.R's
multi-argument message becomes a sprintf template so the text can be grepped
for.

Redundant `.var.name` arguments are dropped where they repeat what checkmate
already reports.  The fifteen that remain are kept deliberately: the thirteen
in PKNCA.options.R would degrade to "Assertion on 'x'", prepare_data.R's would
report `unlist(cols)`, and superposition.R's disambiguates a
checkmate::assert() with two candidate checks.

Not covered here: R/bioequivalence.R and the conditions added by #588 to
R/superposition.R both use base stop()/warning().  They arrived after #548's
merge base and are a separate migration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@billdenney
billdenney merged commit 686509f into main Aug 21, 2026
8 checks passed
@billdenney
billdenney deleted the nocov-and-stop-cleanup branch August 21, 2026 12:21
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