dt_print_options.Rd
The function allows the user to define options relating to the print method for data.table
.
dt_print_options(
class = TRUE,
topn = 5,
rownames = TRUE,
nrows = 100,
trunc.cols = TRUE
)
should the variable class be printed? (options("datatable.print.class")
)
the number of rows to print (both head and tail) if nrows(DT) > nrows
. (options("datatable.print.topn")
)
should rownames be printed? (options("datatable.print.rownames")
)
total number of rows to print (options("datatable.print.nrows")
)
if TRUE
, only the columns that fit in the console are printed (with a message stating the variables not shown, similar to tibbles
; options("datatable.print.trunc.cols")
). This only works on data.table
versions higher than 1.12.6
(i.e. not currently available but anticipating the eventual release).
None. This function is used for its side effect of changing options.
dt_print_options(
class = TRUE,
topn = 5,
rownames = TRUE,
nrows = 100,
trunc.cols = TRUE
)