new mo_group_members()

This commit is contained in:
dr. M.S. (Matthijs) Berends committed 2024-04-19 10:18:21 +02:00
1 parent 7e7bc9d56e
commit 2899b3c840
10 files changed
+86 -26

No files matched your search

+1 -1
View File
@@ -835,7 +835,7 @@ meet_criteria <- function(object, # can be literally `list(...)` for `allow_argu
return(invisible())
}
if (!is.null(allow_class)) {
if (!is.null(allow_class) && !(suppressWarnings(all(is.na(object))) && allow_NA == TRUE)) {
stop_ifnot(inherits(object, allow_class), "argument `", obj_name,
"` must be ", format_class(allow_class, plural = isTRUE(has_length > 1)),
", i.e. not be ", format_class(class(object), plural = isTRUE(has_length > 1)),