Skip to content

Commit a01ae43

Browse files
authored
Merge pull request #24 from explodecomputer/default-varpath-fix
Update findvars.r Fix logic
2 parents 0a1f81f + 6541d20 commit a01ae43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/findvars.r

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ findVars <- function(..., logic="any", ignore.case=TRUE, perl=FALSE, fixed=FALSE
4040
l <- unlist(list(...))
4141
stopifnot(length(l) > 0)
4242
stopifnot(logic %in% c("any", "all", "none"))
43-
invert <- ifelse("none", TRUE, FALSE)
43+
invert <- logic == "none"
4444
if (whole.word) {
4545
l <- lapply(l, whole.word.regex)
4646
}

0 commit comments

Comments
 (0)