Skip to content

Text keys, regional pruning, matrix keys, exchange formats and a field-ready wizard (0.3.0) - #13

Merged
leipzig merged 1 commit into
masterfrom
roadmap-recs
Nov 21, 2026
Merged

leipzig merged 1 commit into
masterfrom
roadmap-recs

Conversation

@leipzig

@leipzig leipzig commented Nov 21, 2026

Copy link
Copy Markdown
Owner

Summary

Implements the roadmap recommendations and bumps the version to 0.3.0.

Getting keys in and out

  • keyFromText() / parseTextKey() read keys written as plain text (the classic "1a … 2 / 1b … Taxon" layouts, OCR repairs, an optional llm first pass).
  • pruneKey(), regionalKey() (GBIF or iNaturalist) and mergeKeys().
  • SDD, DELTA, Lucid and Xper readers and writers.
  • keyToSpreadsheet() writes the CSV that keyFromSpreadsheet() reads.

Better keys

  • keyFromMatrix(): variable and unknown taxa go down both leads; characters carries Cost, Season and Needs.
  • keyQuality() and occurrenceWeights(); summary() reports mean steps, expected steps and efficiency.
  • generateTree() now splits a one-row-per-taxon matrix by default.

Wizard

  • "I'm not sure", offline install (offline = TRUE), a pick-any-character mode (matrix =), and photo identification in the browser (photoModel =).

Photo keys

  • ONNX backend without PyTorch, saved embeddings shipped for the examples, exportBrowserModel().
  • suggestSnigletNames() with claudeNamer().
  • inatPhotos(), benchmarkKey() and analysis/inat-benchmark.

Package

  • R-CMD-check and coverage workflows replace .travis.yml.
  • License: GPL (>= 3).
  • README claims checked against the code; a webR page (webr/), codemeta.json, CONTRIBUTING.md, inst/CITATION and ropensci-readiness.md.

Breaking changes

  • mecit(), keyFromMecit(), splitVariables() and simulateExpression() are removed; they move to a companion package, mecit, which is not published yet. lme4, glmertree and partykit leave Suggests.
  • vibrioKey() defaults to variable = "both": 92 couplets instead of 73. vibrioKey(variable = "missing") returns the previous key.
  • exportWizard(order = "parsimony") is deprecated.

Testing

  • Full testthat suite: 563 tests, 0 failures, 20 skipped (macOS, R 4.6.1).
  • R CMD check --no-manual on the built tarball: Status: OK.
  • The wizard, offline mode and photo identification were driven in headless Chrome.
  • The new workflows have not run on GitHub Actions before this PR; Linux and Windows results are unknown until they do.
  • The coverage workflow's Codecov upload needs a CODECOV_TOKEN repository secret.

Known gaps

  • Browser photo identification gives a confident answer for a photo of something not in the key; no similarity cutoff is written to model.json yet.
  • The cost rule in keyFromMatrix() can put a very cheap, mostly-unknown character first and inflate the key.
  • Numeric characters are keyed state-against-rest, not by threshold.
  • regionalKey(vibrioKey()) fails because the vibrio labels are abbreviated.
  • claudeNamer() is tested only against fake models; no request has been sent to the API.
  • Not tried: a real phone, iOS Safari, a screen reader, or opening written files in Lucid, Xper3 or a DELTA program.

🤖 Generated with Claude Code

…d-ready wizard (0.3.0)

Getting keys in and out
- keyFromText()/parseTextKey() read keys written as plain text
- pruneKey(), regionalKey() (GBIF or iNaturalist) and mergeKeys()
- readSDD/writeSDD, readDELTA/writeDELTA, readLucid/writeLucid,
  readXper/writeXper and the SDD and Lucid key readers
- keyToSpreadsheet() writes what keyFromSpreadsheet() reads

Better keys
- keyFromMatrix(): variable and unknown taxa go down both leads;
  character cost and season
- vibrioKey() gains `variable` and defaults to "both" (92 couplets);
  vibrioMatrix()
- generateTree() defaults to minsplit = 2, minbucket = 1, cp = 0
- keyQuality(), occurrenceWeights(); summary() reports mean and
  expected steps and efficiency

Wizard
- "I'm not sure", offline install (manifest and service worker),
  pick-any-character mode from a matrix, photo identification in the
  browser (photoModel)
- order = "parsimony" is deprecated

Photo keys
- ONNX backend without PyTorch, saved embeddings, exportBrowserModel()
- suggestSnigletNames() with claudeNamer()
- inatPhotos(), benchmarkKey() and analysis/inat-benchmark

Package
- mecit(), keyFromMecit(), splitVariables() and simulateExpression()
  move to the companion package mecit; lme4, glmertree and partykit
  leave Suggests
- License: GPL (>= 3)
- R-CMD-check and coverage workflows replace .travis.yml
- README claims checked against the code; webR page, codemeta.json,
  CONTRIBUTING.md, inst/CITATION and rOpenSci readiness notes

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
@leipzig
leipzig merged commit 55ddae6 into master Nov 21, 2026
6 checks passed
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