Skip to content

Commit 1c2920b

Browse files
deprecate cedta.override
1 parent 2f0d12f commit 1c2920b

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

R/cedta.R

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11

2-
cedta.override = NULL # If no need arises, will deprecate.
3-
42
cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdown","knitr","ezknitr","IRkernel", "rtvs")
53
# These packages run user code in their own environment and thus do not
64
# themselves Depend or Import data.table. knitr's eval is passed envir=globalenv() so doesn't
@@ -59,7 +57,6 @@ cedta = function(n=2L) {
5957
(length(sc<-sys.calls())>=8L && sc[[length(sc)-7L]] %iscall% 'example')) ) || # 'example' for #2972
6058
(nsname=="base" && all(c("FUN", "X") %chin% ls(parent.frame(n)))) || # lapply
6159
(nsname %chin% cedta.pkgEvalsUserCode && .any_eval_calls_in_stack()) ||
62-
nsname %chin% cedta.override ||
6360
isTRUE(ns$.datatable.aware) || # As of Sep 2018: RCAS, caretEnsemble, dtplyr, rstanarm, rbokeh, CEMiTool, rqdatatable, RImmPort, BPRMeth, rlist
6461
tryCatch("data.table" %chin% get(".Depends",paste("package",nsname,sep=":"),inherits=FALSE),error=function(e)FALSE) # both ns$.Depends and get(.Depends,ns) are not sufficient
6562
if (!ans && getOption("datatable.verbose")) {

0 commit comments

Comments
 (0)