We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 0a1f81f + 6541d20 commit a01ae43Copy full SHA for a01ae43
1 file changed
R/findvars.r
@@ -40,7 +40,7 @@ findVars <- function(..., logic="any", ignore.case=TRUE, perl=FALSE, fixed=FALSE
40
l <- unlist(list(...))
41
stopifnot(length(l) > 0)
42
stopifnot(logic %in% c("any", "all", "none"))
43
- invert <- ifelse("none", TRUE, FALSE)
+ invert <- logic == "none"
44
if (whole.word) {
45
l <- lapply(l, whole.word.regex)
46
}
0 commit comments