talira

Coloured formatting for columns of data in R

open sourceMITfree

pillar is an R package for formatting columns of data with the colours and Unicode characters of modern terminals, through its pillar and colonnade generics. It's a package for developers rather than end users: it does the formatting behind tibble's print() and format(), and packages that define a vector type for tibble columns customise how it displays with pillar's methods. It's from r-lib, with RStudio (now Posit) as copyright holder.

Problems it solves

  • customise how my R vector class prints inside a tibble
  • format data columns with colour in the R console
  • control column display for a custom R data type

Features

  • colour and Unicode formatting of data columns
  • pillar and colonnade generics
  • custom display for vector types in tibbles