Skip to content

Error when a Suggests package is missing; start the development version - #13

Merged
acoppock merged 3 commits into
mainfrom
fix-suggests-check-installed
Nov 16, 2026
Merged

acoppock merged 3 commits into
mainfrom
fix-suggests-check-installed

Conversation

@acoppock

Copy link
Copy Markdown
Contributor

Eight helpers that wrap a Suggests package printed a message and returned NULL invisibly when the package was missing, so the failure surfaced later, in whatever code used the result. They now call rlang::check_installed(), which stops at the call with an error naming the package and offers to install it in an interactive session. estimator_AS_tidy() keeps its deliberate CRAN stub (NEWS 1.0.16).

Also bumps main to 1.0.16.9000 with a # rdss (development version) NEWS section, so main is the development version as in randomizr and estimatr.

No test: the repo has no tools for mocking a missing package.

🤖 Generated with Claude Code

acoppock and others added 3 commits November 16, 2026 15:27
Helpers printed a message and returned NULL, so the failure surfaced later in unrelated code. rlang::check_installed() now stops at the call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@acoppock
acoppock merged commit 3fc785d into main Nov 16, 2026
5 checks passed
@acoppock
acoppock deleted the fix-suggests-check-installed branch November 16, 2026 21:36
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