Skip to content

Commit bfce3a8

Browse files
committed
restore print.data.table
1 parent 556b293 commit bfce3a8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

R/cedta.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ cedta.pkgEvalsUserCode = c("gWidgetsWWW","statET","FastRWeb","slidify","rmarkdow
4848
}
4949

5050
# cedta = Calling Environment Data.Table-Aware
51-
cedta = function(n=2L, verbose = getOption("datatable.verbose", FALSE)) {
51+
cedta = function(n=2L) {
5252
# Calling Environment Data Table Aware
5353
env = parent.frame(n)
5454
if (isTRUEorFALSE(env$.datatable.aware)) { # dtplyr#184, #5654
@@ -72,7 +72,7 @@ cedta = function(n=2L, verbose = getOption("datatable.verbose", FALSE)) {
7272
(nsname %chin% cedta.pkgEvalsUserCode && .any_eval_calls_in_stack()) ||
7373
isTRUE(ns$.datatable.aware) || # As of Sep 2018: RCAS, caretEnsemble, dtplyr, rstanarm, rbokeh, CEMiTool, rqdatatable, RImmPort, BPRMeth, rlist
7474
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
75-
if (!ans && verbose) {
75+
if (!ans && getOption("datatable.verbose")) {
7676
# nocov start
7777
catf("cedta decided '%s' wasn't data.table aware. Here is call stack with [[1L]] applied:\n", nsname)
7878
print(sapply(sys.calls(), `[[`, 1L))

R/data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
dim.data.table = function(x)
22
{
3-
if (!cedta(verbose=FALSE)) return(NextMethod()) # nocov
3+
if (!cedta()) return(NextMethod()) # nocov
44
.Call(Cdim, x)
55
}
66

0 commit comments

Comments
 (0)