Skip to content

Commit

Permalink
nocov new code
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Jan 12, 2024
1 parent b3f6896 commit 6d49469
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions R/cedta.R
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
# package authors could set it using assignInNamespace and then not revert its value properly which would
# cause subsequent calls from other packages to fail.

# nocov start: very hard to reach this within our test suite -- the call stack within a call generated by e.g. knitr
# for loop, not any(vapply_1b(.)), to allow early exit
.any_eval_calls_in_stack <- function() {
calls = sys.calls()
Expand All @@ -32,6 +33,7 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
}
return(FALSE)
}
# nocov end

# cedta = Calling Environment Data.Table-Aware
cedta = function(n=2L) {
Expand Down

0 comments on commit 6d49469

Please sign in to comment.