mirror of
https://github.com/msberends/AMR.git
synced 2025-07-09 11:01:57 +02:00
documentation fix
This commit is contained in:
@ -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)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user