1
0
mirror of https://github.com/msberends/AMR.git synced 2025-07-09 19:41:49 +02:00

documentation fix

This commit is contained in:
2022-10-10 21:03:39 +02:00
parent 3deeedc4b6
commit 955f9d7020
5 changed files with 28 additions and 18 deletions

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)
)