High-level interface

These functions accept vectors or lists and create objects that format nicely on the terminal.

pillar()

Format a vector suitable for tabular display

colonnade() squeeze()

Format multiple vectors in a tabular display

extra_cols()

Retrieve information about columns that didn't fit the available width

Hooks

Override or use these methods if you want pillar support for your data type.

pillar_shaft() print(<pillar_shaft>) format(<pillar_shaft>)

Column data

new_pillar_shaft() new_pillar_shaft_simple()

Constructor for column data

new_ornament()

Helper to define the contents of a pillar

Styling

For consistent output among different data types.

style_num() style_subtle() style_subtle_num() style_bold() style_na() style_neg()

Styling helpers

Miscellaneous

type_sum() obj_sum() is_vector_s3()

Provide a succinct summary of an object

dim_desc()

Format dimensions

expect_known_display()

Test helpers

get_extent() get_max_extent()

Calculate display width

pillar-package

pillar: Coloured Formatting for Columns