(v0.8.0.9034) add cid to antivirals

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-11-23 12:39:57 +01:00
1 parent 267320f15f
commit e53cc4990c
37 files changed
+460 -449

No files matched your search

+2 -5
View File
@@ -396,6 +396,8 @@ mo_property <- function(x, property = "fullname", language = get_locale(), ...)
}
mo_validate <- function(x, property, ...) {
load_AMR_package()
dots <- list(...)
Becker <- dots$Becker
@@ -407,11 +409,6 @@ mo_validate <- function(x, property, ...) {
Lancefield <- FALSE
}
if (!"AMR" %in% base::.packages()) {
require("AMR")
# check .onLoad() in R/zzz.R: data tables are created there.
}
# try to catch an error when inputting an invalid parameter
# so the 'call.' can be set to FALSE
tryCatch(x[1L] %in% AMR::microorganisms[1, property],