Skip to content

Commit dce5314

Browse files
remove extra mat_abbs
1 parent d8931a1 commit dce5314

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

R/print.data.table.R

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -142,11 +142,7 @@ print.data.table = function(x, topn=getOption("datatable.print.topn"),
142142
if (nrow(toprint)>20L && col.names == "auto")
143143
# repeat colnames at the bottom if over 20 rows so you don't have to scroll up to see them
144144
# option to shut this off per request of Oleg Bondar on SO, #1482
145-
toprint = rbind(toprint, matrix(if (quote) old else colnames(toprint), nrow=1L), if (isTRUE(class)) {
146-
mat_abbs = matrix(abbs, nrow=1L)
147-
rownames(mat_abbs) = ""
148-
mat_abbs
149-
})
145+
toprint = rbind(toprint, matrix(if (quote) old else colnames(toprint), nrow=1L), if (isTRUE(class)) matrix(abbs, nrow=1L))
150146
print_default(toprint)
151147
invisible(x)
152148
}

0 commit comments

Comments
 (0)