documentation fix

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2022-10-10 21:03:39 +02:00
1 parent 3deeedc4b6
commit 955f9d7020
5 files changed
+28 -18

No files matched your search

+1 -1
View File
@@ -458,7 +458,7 @@ ab_validate <- function(x, property, ...) {
} else {
# try to catch an error when inputting an invalid argument
# so the 'call.' can be set to FALSE
tryCatch(x[1L] %in% AMR::antibiotics[1, property, drop = TRUE],
tryCatch(x[1L] %in% AB_lookup[1, property, drop = TRUE],
error = function(e) stop(e$message, call. = FALSE)
)