Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions NEWS.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# APCalign 2.0.0

- Fix malformed `aligned_reason` text for fuzzy genus-level `aff.`/`affinis` matches (`match_06b`/`06c`/`06d`), which previously appended the date without a separating ` (`.
- New function `synonyms_for_accepted_names()` to list synonyms for currently accepted taxon names.
- `load_taxonomic_resources()` now caches results in memory for the duration of the R session, so repeated calls with the same version return immediately without re-downloading or re-processing data.
- New function `clear_cached_resources()` to remove the session cache and force a reload.
Expand Down
6 changes: 3 additions & 3 deletions R/match_taxa.R
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,7 @@ match_taxa <- function(
paste0(aligned_name_tmp, identifier_string2, "]")
),
aligned_reason = paste0(
"Fuzzy match to APC-accepted genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank",
"Fuzzy match to APC-accepted genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank (",
Sys.Date(),
")"
),
Expand Down Expand Up @@ -999,7 +999,7 @@ match_taxa <- function(
paste0(aligned_name_tmp, identifier_string2, "]")
),
aligned_reason = paste0(
"Fuzzy match to APC-known genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank",
"Fuzzy match to APC-known genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank (",
Sys.Date(),
")"
),
Expand Down Expand Up @@ -1036,7 +1036,7 @@ match_taxa <- function(
paste0(aligned_name_tmp, identifier_string2, "]")
),
aligned_reason = paste0(
"Fuzzy match to APNI-listed genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank",
"Fuzzy match to APNI-listed genus. Taxon name includes 'affinis' or 'aff' indicating an unknown taxon that bears an affinity to a different taxon in the same genus and taxon can only be aligned to genus-rank (",
Sys.Date(),
")"
),
Expand Down
60 changes: 60 additions & 0 deletions tests/testthat/_snaps/match_branches.md

Large diffs are not rendered by default.

Loading
Loading