Skip to content

Prepare 0.2.0 for CRAN submission - #6

Merged
elkronos merged 1 commit into
mainfrom
cran-0.2.0
Nov 6, 2026
Merged

elkronos merged 1 commit into
mainfrom
cran-0.2.0

Conversation

@elkronos

@elkronos elkronos commented Nov 6, 2026

Copy link
Copy Markdown
Owner

Fixes from a pre-submission review against the CRAN Repository Policy and the revision requests CRAN reviewers commonly send.

Changes

  • Tests without suggested packages. Two tests called glmnet or caret without skip_if_not_installed(). CRAN's checks without suggested packages would fail on them, which usually means revise and resubmit. They now skip. The full suite was run with no suggested packages installed: 0 failures.
  • Examples. Examples that run in under 2 seconds are no longer inside \donttest{}. Reviewers ask that \donttest{} be kept for examples that take more than about 5 seconds. Values computed inside guarded if (requireNamespace(...)) { } blocks are now printed, so the examples show output. fs_bayes() (compiles Stan) and fs_boruta() stay in \donttest{}.
  • DESCRIPTION.
    • Reflowed a broken line and spelled out LASSO.
    • Requires withr (>= 2.4.0), the first withr release that exports local_seed().
    • Boruta stays unquoted, as the CRAN review of 0.1.0 asked.
  • cran-comments.md.
    • Lists the checks that were actually run, including win-builder.
    • Explains in advance the likely spelling NOTE on cited surnames.
    • Explains the scoped earth attach in fs_mars().
    • Drops assertion counts that CRAN cannot reproduce.
  • inst/WORDLIST updated; spelling::spell_check_package() is clean.

Verification

R CMD check --as-cran was run twice, each with _R_CHECK_LIMIT_CORES_=TRUE:

Run Result
All suggested packages, --run-donttest Only environment issues
No suggested packages Only environment issues

The environment issues were: no UTF-8 locale, no qpdf, no network for the timestamp check, and Boruta, bigstatsr and PRROC unavailable.

  • Tests take 13 to 20 seconds.
  • Every example except fs_bayes takes at most 1.2 seconds. fs_bayes takes 5.8 seconds and is in \donttest{}.

Still to run before submitting (needs network)

  • devtools::check_win_devel(): incoming checks, PDF manual, URL and DOI checks.
  • urlchecker::url_check().
  • tools::package_dependencies("featR", reverse = TRUE), to confirm there are no reverse dependencies.

Generated by Claude Code

- Tests that call glmnet or caret now skip when the package is absent;
  the suite passes with no suggested packages installed.
- Examples that run in under two seconds are no longer in \donttest{}, and
  values computed inside guarded example blocks are printed.
- DESCRIPTION: reflow the Description, spell out LASSO, require
  withr >= 2.4.0 (first release exporting local_seed()).
- cran-comments: describe the checks actually run (with and without
  suggested packages), pre-empt the surname spelling NOTE, explain the
  scoped earth attach in fs_mars(), and drop unverifiable counts.
- inst/WORDLIST: refresh for the reworked documentation.
@elkronos
elkronos merged commit 5600135 into main Nov 6, 2026
9 checks passed
@elkronos
elkronos deleted the cran-0.2.0 branch November 9, 2026 00:10
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