We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8c094e commit ba82862Copy full SHA for ba82862
R/check-query.R
@@ -46,8 +46,11 @@ check_query <- function(query, endpoint) {
46
47
apply_checks <- function(x, endpoint) {
48
x <- swap_null_nms(x)
49
- if (names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
50
- lapply(x, FUN = apply_checks)
+
+ # troublesome next line: 'length(x) = 2 > 1' in coercion to 'logical(1)'
51
+ # if (names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
52
+ if (length(names(x)) > 1 || names(x) %in% c("_not", "_and", "_or") || is.na(names(x))) {
53
+ lapply(x, FUN = apply_checks)
54
} else if (names(x) %in% all_opr) {
55
f1 <- flds_flt[flds_flt$field == names(x[[1]]), ]
56
one_check(
0 commit comments