tests/testthat/_snaps/tbl-format-header.md

tbl_format_header() results

Code
  tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 80))
Output
  <tbl_format_header(setup)>
  # A data frame: 32 x 11
Code
  tbl_format_header(tbl_format_setup(as_unknown_rows(trees), width = 30, n = 10))
Output
  <tbl_format_header(setup)>
  # A data frame: ?? x 3
Code
  # Narrow
  tbl_format_header(tbl_format_setup(as_tbl(mtcars), width = 10))
Output
  <tbl_format_header(setup)>
  # A data
  #   frame:
  #   32 x
  #   11
Code
  # Custom tbl_sum()
  tbl_format_header(tbl_format_setup(new_foo_tbl(), width = 30))
Output
  <tbl_format_header(setup)>
  # A data frame: 0 x 0
  # foo:          bar
Code
  # Focus columns
  tbl_format_header(tbl_format_setup(new_tbl(trees, pillar_focus = "Volume"),
  width = 30))
Output
  <tbl_format_header(setup)>
  # A data frame:  31 x 3
  # Focus columns: Volume


Try the pillar package in your browser

Any scripts or data that you put into this service are public.

pillar documentation built on March 31, 2023, 10:19 p.m.