Skip to content

Formatting tables

Override or extend these methods if you want to customize the appearance of your tibble-like object.

tbl_format_setup()
Set up formatting
tbl_format_header()
Format the header of a tibble
tbl_format_body()
Format the body of a tibble
tbl_format_footer()
Format the footer of a tibble
ctl_new_pillar() ctl_new_rowid_pillar()
Customize the appearance of simple pillars in your tibble subclass
ctl_new_pillar_list()
Customize the appearance of compound pillars in your tibble subclass
tbl_sum()
Provide a succinct summary of an object
glimpse()
Get a glimpse of your data
format_glimpse()
Format a vector for horizontal printing

Formatting pillars

Functions and methods to implement pillar support for your data type.

pillar()
Object for formatting a vector suitable for tabular display
new_pillar()
Construct a custom pillar object
new_pillar_component() pillar_component()
Components of a pillar
pillar_shaft() print(<pillar_shaft>) format(<pillar_shaft>)
Column data
new_pillar_shaft() new_pillar_shaft_simple()
Constructor for column data
type_sum() obj_sum() size_sum()
Provide a succinct summary of an object
format_type_sum()
Format a type summary

Styling

For consistent output.

style_num() style_subtle() style_subtle_num() style_bold() style_na() style_neg()
Styling helpers
align()
Alignment helper
get_extent() get_max_extent()
Calculate display width
new_ornament()
Helper to define the contents of a pillar
new_pillar_title()
Prepare a column title for formatting
new_pillar_type()
Prepare a column type for formatting
dim_desc()
Format dimensions

Miscellaneous

pillar_options
Package options
pillar-package
pillar: Coloured Formatting for Columns