Skip to content

docs: unwrap \donttest{} on the five core help pages (PUNY-zumspyzy) - #97

Merged
bart-turczynski merged 1 commit into
mainfrom
fix/unwrap-donttest-examples
Jul 26, 2026
Merged

bart-turczynski merged 1 commit into
mainfrom
fix/unwrap-donttest-examples

Conversation

@bart-turczynski

Copy link
Copy Markdown
Owner

All five core help pages — puny_encode, puny_decode, is_punycode, is_idn, validate_domain — wrapped their entire \examples{} block in \donttest{}. R CMD check skips those by default, so CRAN never executed the examples for the package's primary surface: 8 exports have examples, but only 3 help pages ran under a default check.

Every one of these examples is a fast, offline, deterministic call on a string constant — no network, no filesystem, no timing or platform dependence. The \donttest{} looks like scaffold boilerplate; no reason for it is recorded anywhere in the repo.

Fixed in the roxygen blocks (R/punycoder.R, R/validators.R) and regenerated man/ with roxygen2; both committed together. The .Rd diff is exactly the two wrapper lines per page.

Verification

R CMD check --as-cran without --run-donttest, after a clean rm -f src/*.o; R CMD INSTALL .:

  • * checking examples ... OK
  • Status: 1 NOTE — the pre-existing Version contains large components (1.2.1.9000) dev-version note, unrelated to this change.
  • Slowest example: 2 ms. Confirmed the previously-skipped calls now appear in the executed punycoder-Ex.R.

Not a release blocker and independent of the 1.3.0 tag gate (PUNY-tjusxhgn); the version string / NEWS / cran-comments work stays deferred to that window.

🤖 Generated with Claude Code

puny_encode, puny_decode, is_punycode, is_idn and validate_domain wrapped
their entire \examples{} block in \donttest{}, so a default R CMD check
never executed the examples for the package's primary surface -- only 3 of
8 help pages ran.

Every one of these examples is a fast, offline, deterministic call on a
string constant: no network, no filesystem, no timing or platform
dependence. Unwrapping them means CRAN verifies these pages on every
platform it checks, including the Windows fallback-backend path that
configure never exercises locally.

Regenerated man/ with roxygen2. R CMD check --as-cran without
--run-donttest: "checking examples ... OK", 1 NOTE (the pre-existing dev
version string). Slowest example is 2ms.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@bart-turczynski
bart-turczynski merged commit 43d84ab into main Jul 26, 2026
11 checks passed
@bart-turczynski
bart-turczynski deleted the fix/unwrap-donttest-examples branch July 26, 2026 15:29
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.

2 participants