(v2.1.1.9190) antibiotics deprecation in antibiogram()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-03-09 10:41:11 +01:00
1 parent c7af397edf
commit a2c2be23c1
26 files changed
+203 -180

No files matched your search

+2 -2
View File
@@ -204,14 +204,14 @@ AMR_env$cross_icon <- if (isTRUE(base::l10n_info()$`UTF-8`)) "\u00d7" else "x"
# reference data - they have additional data to improve algorithm speed
# they cannot be part of R/sysdata.rda since CRAN thinks it would make the package too large (+3 MB)
if (NROW(AB_LOOKUP) != NROW(AMR::antimicrobials)) {
# antibiotics data set was updated - run create_AB_AV_lookup() again
# antimicrobials data set was updated - run create_AB_AV_lookup() again
AB_LOOKUP <- create_AB_AV_lookup(AMR::antimicrobials)
}
# deprecated antibiotics data set
makeActiveBinding("antibiotics", function() {
if (interactive()) {
deprecation_warning(old = "antibiotics", new = "antimicrobials", is_function = FALSE, is_dataset = TRUE)
deprecation_warning(old = "antibiotics", new = "antimicrobials", is_dataset = TRUE)
}
AMR::antimicrobials
}, env = asNamespace(pkgname))