Skip to content

Escalate 0.1.0 deprecations, drop purrr, modernize tests - #103

Merged
joethorley merged 4 commits into
mainfrom
package-improvements
Jul 15, 2026
Merged

Escalate 0.1.0 deprecations, drop purrr, modernize tests#103
joethorley merged 4 commits into
mainfrom
package-improvements

Conversation

@joethorley

Copy link
Copy Markdown
Member
  • is.term(), is.incomplete_terms(), is.inconsistent_terms(), parameters(), parameters<-(), set_parameters() and tdims() now error via deprecate_stop(); they had warned since term 0.1.0 (2020-01-15).
  • Drop the purrr dependency by replacing the single purrr::map_chr() call with vapply().
  • Migrate test-print.R from the superseded verify_output() to expect_snapshot() and convert expect_error()/expect_warning() message checks to snapshot tests.

Note: mcmcr re-exports term::parameters and term::parameters<- and tests them; a companion mcmcr PR removes these and must reach CRAN before term is released. nlist and the other CRAN reverse dependency code are unaffected.

devtools::check(): 0 errors, 0 warnings, 0 notes.

🤖 Generated with Claude Code

joethorley and others added 3 commits July 15, 2026 06:03
`is.term()`, `is.incomplete_terms()`, `is.inconsistent_terms()`,
`parameters()`, `parameters<-()`, `set_parameters()` and `tdims()`
have warned since term 0.1.0 (2020-01-15) and now error.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Replace the single `purrr::map_chr()` call with `vapply()`.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Migrate `test-print.R` from the superseded `verify_output()` (removing
`tests/testthat/out/`) and convert `expect_error()`/`expect_warning()`
message checks to snapshot tests.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The wording of chk's S3 class errors differs between CRAN chk (0.10.0)
and the development version, so snapshots written locally fail on CI.
Use `expect_error()` with a version-stable pattern and class instead.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@joethorley
joethorley merged commit aaeb985 into main Jul 15, 2026
9 checks passed
@joethorley
joethorley deleted the package-improvements branch July 15, 2026 13:48
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