fixes for microorganisms.codes

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2019-05-28 16:50:40 +02:00
1 parent 7e0e171512
commit 27380fa021
73 files changed
+679 -412

No files matched your search

+1 -1
View File
@@ -396,7 +396,7 @@ mo_validate <- function(x, property, ...) {
tryCatch(x[1L] %in% AMR::microorganisms[1, property],
error = function(e) stop(e$message, call. = FALSE))
if (!all(x %in% AMR::microorganisms[, property])
if (!all(x %in% pull(AMR::microorganisms, property))
| Becker %in% c(TRUE, "all")
| Lancefield %in% c(TRUE, "all")) {
exec_as.mo(x, property = property, ...)