Maturing lifecycle Provides pillar and colonnade generics designed for formatting columns of data using the full range of colours provided by modern terminals.

Details

See pillar() for formatting a single column, and colonnade() for formatting multiple columns passed as a data frame.

Package options

  • pillar.bold: Use bold font, e.g. for column headers? This currently defaults to FALSE, because many terminal fonts have poor support for bold fonts.

  • pillar.subtle: Use subtle style, e.g. for row numbers and data types? Default: TRUE.

  • pillar.subtle_num: Use subtle style for insignificant digits? Default: FALSE, is also affected by the pillar.subtle option.

  • pillar.neg: Highlight negative numbers? Default: TRUE.

  • pillar.sigfig: The number of significant digits that will be printed and highlighted, default: 3. Set the pillar.subtle option to FALSE to turn off highlighting of significant digits.

  • pillar.min_title_chars: The minimum number of characters for the column title, default: 15. Column titles may be truncated up to that width to save horizontal space. Set to Inf to turn off truncation of column titles.

See also

Examples

pillar(1:3)
#> <int> #> 1 #> 2 #> 3
pillar(c(1, 2, 3))
#> <dbl> #> 1 #> 2 #> 3
pillar(factor(letters[1:3]), title = "letters")
#> letters #> <fct> #> a #> b #> c
colonnade(iris[1:3, ])
#> Sepal.Length Sepal.Width Petal.Length Petal.Width Species #> <dbl> <dbl> <dbl> <dbl> <fct> #> 1 5.1 3.5 1.4 0.2 setosa #> 2 4.9 3 1.4 0.2 setosa #> 3 4.7 3.2 1.3 0.2 setosa