Add add_custom_antimicrobial_synonyms() (#307) (#311)

Adds add_custom_antimicrobial_synonyms() to add local names, such as trade names, to existing antimicrobials, also via the AMR_custom_ab option. Matching is language-independent; as.ab() now returns NA with a warning for input that is not valid UTF-8.
This commit is contained in:
tori0513 authored and GitHub committed 2026-10-10 09:14:07 +02:00
1 parent 9e05fe184b
commit 3eeabf542a
9 files changed
+623 -17

No files matched your search

+1
View File
@@ -92,6 +92,7 @@ coercion_cache_add <- function(type, keys, inputs, values) {
reset_ab_cache <- function() {
AMR_env$AB_index <- NULL
AMR_env$custom_ab_id_keys <- NULL
AMR_env$ab_previously_coerced <- new_coercion_cache()
}