Skip to content

Resolve FIXMEs#104

Merged
joethorley merged 3 commits into
mainfrom
fix-fixmes
Jul 15, 2026
Merged

Resolve FIXMEs#104
joethorley merged 3 commits into
mainfrom
fix-fixmes

Conversation

@joethorley

Copy link
Copy Markdown
Member

Closes #90.

Resolves all ten FIXME comments:

  • set_pars.term_rcrd() and summary.term_rcrd() are implemented, filling the API gaps with term vectors.
  • format.term() now escapes embedded backticks so printed terms are unambiguous.
  • The levels.term()/levels.term_rcrd() workarounds are removed; vctrs (>= 0.4.0, now the declared minimum) implements levels.vctrs_vctr() (Fix rbind() for vctrs_vctr with underlying type character r-lib/vctrs#1186 was fixed by levels.vctrs_vctr() returns NULL r-lib/vctrs#1478). rbind() behaviour remains covered by test-levels.R.
  • The pars(scalar = NA) hack for nlist 0.1.0/0.1.1 is removed; no reverse dependency passes scalar = NA.
  • as_list() is imported from extras instead of a local copy (R/extras.R deleted; par_pattern() moved to R/internal.R).
  • as.data.frame.term_rcrd() keeps data.frame() with stringsAsFactors for base compatibility (question comment removed).
  • complete_terms.term_rcrd() keeps the round-trip implementation; its examples now run (\dontrun removed).
  • term() with zero-length dims keeps returning no terms, now locked by a regression test.

Verified: 569 tests pass under both dev and CRAN versions of chk and extras; devtools::check() 0 errors, 0 warnings, 0 notes; pkgdown::check_pkgdown() clean.

🤖 Generated with Claude Code

joethorley and others added 3 commits July 15, 2026 07:17
Fills the API gaps between term and term_rcrd vectors (#90).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
`format.term()` now wraps terms containing backticks and escapes them
so printed output is unambiguous (#90).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
- Remove `levels.term()` and `levels.term_rcrd()` workarounds now that
  vctrs (>= 0.4.0) implements `levels.vctrs_vctr()` (r-lib/vctrs#1186);
  `rbind()` behaviour remains covered by test-levels.R.
- Remove the `pars(scalar = NA)` compatibility hack for nlist 0.1.0/0.1.1.
- Import `as_list()` from extras instead of a local copy; move
  `par_pattern()` to internal.R.
- Run `complete_terms()` term_rcrd examples (no longer \dontrun).
- Lock in that zero-length dims yield no terms in `term()`.

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

FIX FIXMEs

1 participant