Skip to content

Prepare 0.5.0 for CRAN - #62

Open
joethorley wants to merge 4 commits into
mainfrom
cran-prep-0-5-0
Open

Prepare 0.5.0 for CRAN#62
joethorley wants to merge 4 commits into
mainfrom
cran-prep-0-5-0

Conversation

@joethorley

@joethorley joethorley commented Aug 25, 2026

Copy link
Copy Markdown
Member

Covers items 1, 2, 4 and 5 of the CRAN readiness review, plus the reverse dependency checks (item 3).

Changes

1. Drop Remotes: — CRAN rejects packages carrying a Remotes field. extras 0.10.0 is now on CRAN and exports every symbol nlist uses (directional_information, fill_all, fill_na, lower, upper, pvalue, svalue, zscore), verified against the CRAN tarball's NAMESPACE, so the requirement moves from extras (>= 0.9.0.9000) to extras (>= 0.10.0).

2. Version and NEWSVersion: 0.5.0, matching the "0.5.0" already declared in the tidy() soft-deprecation. The seven fledge dev stubs (0.4.0.90010.4.0.9007, five of which read "Same as previous version.") are replaced by a curated section covering the tidy(simplify = TRUE) default change (#61), the deprecate_stop() conversions (#56), the new directional_information argument (#51), the subset.nlists() range check (#55), and the documentation work (#60).

3. Reverse dependenciesrevdep/ set up via usethis::use_revdep() and revdepcheck::revdep_check() run against all four revdeps. Reports committed.

4. Missing @return — added to as_term.mcmc(), as_term.nlist() and as_term.nlists(), the only exported help files that lacked \value{}. Re-documented with roxygen2 8.0.0.9000.

5. cran-comments.md — rewritten for 0.5.0. The stale \Sexpr{} / build/stage23.rdb note is kept but now explains the source (inheriting from generics::tidy(), which lists methods via \Sexpr[stage=render,results=rd]).

Verification

devtools::check(args = "--as-cran") on macOS with R 4.6 and extras 0.10.0 installed from CRAN:

Status: OK
0 errors | 0 warnings | 0 notes

revdepcheck::revdep_check() against mcmcderive 0.1.2, mcmcr 0.6.2, sims 0.0.4, universals 0.0.5:

OK: 4
BROKEN: 0

0 new problems, 0 packages failed to check.

Follow-up for mcmcr (not this PR)

Static analysis of the revdep sources surfaced two mcmcr issues that revdepcheck cannot catch, both relevant to mcmcr #84:

  • mcmcr::tidy.mcmcr() still defaults to simplify = FALSE, which after this release diverges from nlist's TRUE and routes mcmcr's default path through nlist's simplify = FALSE deprecation warning.
  • mcmcr/R/tidy.R carries @inheritParams nlist::tidy.nlist, but nlist exports no tidy.nlist (only tidy.nlists, tidy.mcmc, tidy.mcmc.list). CRAN tarballs ship pre-built Rd so this does not fail the check, but it will error the next time mcmcr is re-documented.

Before submitting

  • Run win-builder (devel and release) and rhub, then fill in the remaining <!-- TODO --> in cran-comments.md.
  • The daily fledge-bump workflow will move main to 0.5.0.9000 the morning after this merges, so build the submission tarball from the tagged v0.5.0 commit.

🤖 Generated with Claude Code

joethorley and others added 4 commits August 25, 2026 10:44
- Drop the `Remotes:` field and require the released extras (>= 0.10.0),
  which exports everything nlist uses.
- Set the version to 0.5.0 and replace the fledge dev-version stubs in
  NEWS.md with a curated 0.5.0 section.
- Document return values for the `as_term()` methods, which CRAN now
  requires for all exported functions.
- Rewrite cran-comments.md for this release.

`R CMD check --as-cran` locally: 0 errors | 0 warnings | 0 notes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
`revdepcheck::revdep_check()` against mcmcderive 0.1.2, mcmcr 0.6.2,
sims 0.0.4 and universals 0.0.5: 0 new problems, 0 failures. Records the
summary in cran-comments.md and adds the revdep/ reports.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
R-devel notes calls to `structure()` using `.Names`, `.Dim` and
`.Dimnames`. rhub flagged this on macOS and Windows R-devel; it does not
reproduce on R 4.6.1 release or on the rhub linux R-devel image.

Renames all 110 occurrences (1 in `R/nlist.R`, the rest dput output in
tests) to `names`, `dim` and `dimnames`.

`R CMD check --as-cran` locally: 0 errors | 0 warnings | 0 notes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
R-hub linux, macOS and Windows (R-devel) all return Status: OK after the
`structure()` special-names fix.

Co-Authored-By: Claude Opus 5 (1M context) <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