(v3.0.1.9005) re-add tidymodels implementation

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2025-12-21 12:19:43 +01:00
1 parent 225c73f7e7
commit 151af21f38
16 files changed
+502 -61

No files matched your search

+2 -1
View File
@@ -99,7 +99,8 @@ atc_online_property <- function(atc_code,
read_html <- import_fn("read_html", "xml2")
if (!all(atc_code %in% unlist(AMR::antimicrobials$atc))) {
atc_code <- as.character(ab_atc(atc_code, only_first = TRUE))
missing <- atc_code %unlike% "[A-Z][0-9][0-9][A-Z][A-Z][0-9][0-9]"
atc_code[missing] <- as.character(ab_atc(atc_code[missing], only_first = TRUE))
}
if (!has_internet()) {