(v1.3.0.9038) prefinal 1.4.0

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2020-10-04 19:26:43 +02:00
1 parent 3136bc54aa
commit baf510183c
89 files changed
+570 -548

No files matched your search

+1 -1
View File
@@ -415,7 +415,7 @@ mo_validate <- function(x, property, language, ...) {
check_dataset_integrity()
if (tryCatch(all(x %in% MO_lookup$mo) & length(list(...)) == 0, error = function(e) FALSE)) {
if (tryCatch(all(x[!is.na(x)] %in% MO_lookup$mo) & length(list(...)) == 0, error = function(e) FALSE)) {
# special case for mo_* functions where class is already <mo>
return(MO_lookup[match(x, MO_lookup$mo), property, drop = TRUE])
}