Skip to content

Commit c43cee8

Browse files
rearrange: .datatable.aware to the top
1 parent 1643f36 commit c43cee8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

R/cedta.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,8 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
5757

5858
if ("data.table" %chin% names(getNamespaceImports(ns))) return(TRUE)
5959

60+
if (isTRUE(ns$.datatable.aware)) return(TRUE)
61+
6062
sc <- sys.calls()
6163
if (nsname == "utils") {
6264
if (exists("debugger.look", parent.frame(n+1L))) return(TRUE)
@@ -75,8 +77,6 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
7577

7678
if (nsname %chin% cedta.override) return(TRUE)
7779

78-
if (isTRUE(ns$.datatable.aware)) return(TRUE)
79-
8080
# both ns$.Depends and get(.Depends,ns) are not sufficient
8181
pkg_ns = paste("package", nsname, sep=":")
8282
tryCatch("data.table" %chin% get(".Depends", pkg_ns, inherits=FALSE), error=function(e) FALSE)

0 commit comments

Comments
 (0)