Skip to content

Commit af7736d

Browse files
committed
adjusted comment on change
1 parent 2d02ffa commit af7736d

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

R/print.data.table.R

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,8 @@ print.data.table = function(x, topn=getOption("datatable.print.topn"),
3232
# Other options investigated (could revisit): Cstack_info(), .Last.value gets set first before autoprint, history(), sys.status(),
3333
# topenv(), inspecting next statement in caller, using clock() at C level to timeout suppression after some number of cycles
3434
SYS = sys.calls()
35-
# is_print_call detects whether print() was called explicitly (e.g., print(DT))
36-
# vs. auto-print (e.g., just typing DT at the prompt). This distinction matters
37-
# because := assignments should suppress auto-print but not explicit print() calls.
35+
# is_print_call detects whether print() was called either explicitly or through autoprint,
36+
# is wrapped in a promise or not to account for R 3.4/3.5.
3837
is_print_call = FALSE
3938
if (identical(SYS[[1L]][[1L]], print)) {
4039
is_print_call = TRUE

0 commit comments

Comments
 (0)