mirror of
https://github.com/msberends/AMR.git
synced 2026-11-16 06:30:48 +01:00
remove warnings from unit tests
This commit is contained in:
1 parent
fed3b6440f
commit
85e2fbe4a3
35 files changed
+115
-110
No files matched your search
+1
-1
@@ -453,7 +453,7 @@ set_ab_names <- function(data, ..., property = "name", language = get_AMR_locale
|
||||
|
||||
ab_validate <- function(x, property, ...) {
|
||||
if (tryCatch(all(x[!is.na(x)] %in% AMR_env$AB_lookup$ab), error = function(e) FALSE)) {
|
||||
# special case for ab_* functions where class is already <ab>
|
||||
# special case for ab_* functions where class is already 'ab'
|
||||
x <- AMR_env$AB_lookup[match(x, AMR_env$AB_lookup$ab), property, drop = TRUE]
|
||||
} else {
|
||||
# try to catch an error when inputting an invalid argument
|
||||
|
||||
Reference in new issue
Block a user