Skip to content

Commit

Permalink
Use %chin%
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Dec 14, 2023
1 parent 402ca84 commit d701e9c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion R/cedta.R
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
# likelier to be close to the end of the call stack, right?
for (ii in length(calls):1) { # rev(seq_len(length(calls)))? See https://bugs.r-project.org/show_bug.cgi?id=18406.
the_call <- calls[[ii]][[1L]]
if (is.name(the_call) && (the_call == "eval" || the_call == "evalq")) return(TRUE)
if (is.name(the_call) && (the_call %chin% c("eval", "evalq"))) return(TRUE)

Check warning on line 31 in R/cedta.R

View check run for this annotation

Codecov / codecov/patch

R/cedta.R#L29-L31

Added lines #L29 - L31 were not covered by tests
}
return(FALSE)

Check warning on line 33 in R/cedta.R

View check run for this annotation

Codecov / codecov/patch

R/cedta.R#L33

Added line #L33 was not covered by tests
}
Expand Down

0 comments on commit d701e9c

Please sign in to comment.