The tibble vignette has an updated way to change its default printing behavior:
You can control the default appearance with options:
options(pillar.print_max = n, pillar.print_min = m)
: if there are more than n rows, print only the first m rows. Use options(pillar.print_max = Inf) to always show all rows.
options(pillar.width = n)
: use n character slots horizontally to show the data. If n > getOption("width"), this will result in multiple tiers. Use options(pillar.width = Inf)
to always print all columns, regardless of the width of the screen.
examples
This will always print all rows:
options(pillar.print_max = Inf)
This will not actually limit the printing to 50 lines:
options(pillar.print_max = 50)
But this will restrict printing to 50 lines:
options(pillar.print_max = 50, pillar.print_min = 50)