Skip to content

Commit afcd0f4

Browse files
committed
add fix for truncated print
1 parent e25ea80 commit afcd0f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

R/print.data.table.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ print.data.table = function(x, topn=getOption("datatable.print.topn"),
145145
toprint = rbind(
146146
toprint,
147147
matrix(if (quote) old else colnames(toprint), nrow=1L), # see #97
148-
if (isTRUE(class)) matrix(abbs, nrow=1L) # #6902
148+
if (isTRUE(class)) matrix(if (trunc.cols) abbs[cols_to_print] else abbs, nrow=1L) # #6902
149149
)
150150
print_default(toprint)
151151
invisible(x)

0 commit comments

Comments
 (0)