Formatting of tbl objects
These functions and methods are responsible for printing objects
of the "tbl"
class, which includes tibbles
and dbplyr lazy tables.
See tibble::formatting for user level documentation,
and vignette("customization")
for details.
While it is possible to implement a custom format()
or print()
method
for your tibble-like objects, it should never be necessary
if your class inherits from "tbl"
.
In this case, the default methods offer many customization options
at every level of detail.
This means you only need to override or extend implementations for the parts
that need change.
The output uses color and highlighting according to the "cli.num_colors"
option.
Set it to 1
to suppress colored and highlighted output.
## S3 method for class 'tbl' print(x, width = NULL, ..., n = NULL, n_extra = NULL) ## S3 method for class 'tbl' format(x, width = NULL, ..., n = NULL, n_extra = NULL)
x |
Object to format or print. |
width |
Width of text output to generate. This defaults to |
... |
Passed on to |
n |
Number of rows to show. If |
n_extra |
Number of extra columns to print abbreviated information for,
if the width is too small for the entire tibble. If |
tbl_format_setup()
for preparing an object for formatting
print(vctrs::new_data_frame(list(a = 1), class = "tbl"))
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.