tests/testthat/_snaps/table.md

simple table

Code
  print(table)
Output
  +-------+-------+
  | hello | world |
  +-------+-------+
  | b     | a     |
  +-------+-------+

can nest tables

Code
  print(animal)
Output
  +---------------------+
  | Animal              |
  +---------------------+
  | +-----------------+ |
  | | +age: Int       | |
  | +-----------------+ |
  | | +gender: String | |
  | +-----------------+ |
  +---------------------+
  | +-------------+     |
  | | +isMammal() |     |
  | +-------------+     |
  | | +mate()     |     |
  | +-------------+     |
  +---------------------+

can set table configs

Code
  print(table)
Output
  +--------------------------------------------------+
  | hello                                            |
  +--------------------------------------------------+
  | world                                            |


Try the tabulate package in your browser

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

tabulate documentation built on March 18, 2022, 6:44 p.m.