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 fb25640 commit e4a23c1Copy full SHA for e4a23c1
R/filter.R
@@ -154,11 +154,11 @@ check_filter <- function(dots, error_call = caller_env()) {
154
155
for (i in which(named)) {
156
quo <- dots[[i]]
157
-
158
- # only allow named logical vectors, anything else
159
- # is suspicious
160
expr <- quo_get_expr(quo)
161
- if (!is.logical(expr)) {
+
+ # Allow named logical vectors but catch bare
+ # logical values and anything else
+ if (!is.logical(expr) || (is.logical(expr) && length(expr) == 1)) {
162
name <- names(dots)[i]
163
bullets <- c(
164
"We detected a named input.",
0 commit comments