taxonomic_resources: Rename tables to snake_case, add family, add structure tests - #272
Merged
Conversation
…ance structure tests - Renames `APC list (accepted)` → `APC_accepted` and `APC list (known names)` → `APC_synonyms` throughout the codebase, and updates all references in align_taxa.R, match_taxa.R, and update_taxonomy.R. - adds `family` to the columns selected in taxonomic_resources - adds tests for the structure of tables in taxonomic_resources
Contributor
There was a problem hiding this comment.
Pull request overview
This PR updates the taxonomic_resources interface and downstream consumers to use simpler snake_case table names, includes family in APC-derived accepted/synonym tables, and adds structure tests to prevent regressions.
Changes:
- Renamed
resources$APC list (accepted)/resources$APC list (known names)toresources$APC_accepted/resources$APC_synonymsand updated references across alignment/matching/updating code. - Added
familyto the columns selected for APC species/infraspecific resource subsets. - Added a new test file asserting expected resource table names and key column sets.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
R/load_taxonomic_resources.R |
Adds family to APC subset selection and renames generated resource list elements to APC_accepted / APC_synonyms. |
R/align_taxa.R |
Updates APC accepted-name lookup to use resources$APC_accepted. |
R/match_taxa.R |
Updates all APC accepted/known-name matching paths to use APC_accepted / APC_synonyms. |
R/update_taxonomy.R |
Updates APC accepted/known-name references to the renamed resource tables. |
tests/testthat/test-taxonomic_resources_structure.R |
Adds tests asserting resource list names and expected columns for key tables. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
ehwenk
reviewed
Mar 23, 2026
ehwenk
previously approved these changes
Mar 23, 2026
ehwenk
left a comment
Collaborator
There was a problem hiding this comment.
Thanks! This looks good.
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
ehwenk
approved these changes
Mar 23, 2026
ehwenk
left a comment
Collaborator
There was a problem hiding this comment.
Prefect! Ready to merge.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #271
APC list (accepted)→APC_accepted,APC list (known names)→APC_synonymsandAPNI names→APNI_namesthroughout the codebase, and updates all references in align_taxa.R, match_taxa.R, and update_taxonomy.R.familyto the columns selected in taxonomic_resources