tests/testthat/_snaps/cli_table.md

cli_table

Code
  cat(cli_table(df, border_style = style), sep = "\n")
Output
  ┌────────────┬───────────┬────────────┬───────────┬───────┐
  │Sepal.Length│Sepal.Width│Petal.Length│Petal.Width│Species│
  ├────────────┼───────────┼────────────┼───────────┼───────┤
  │ 5.1        │ 3.5       │ 1.4        │ 0.2       │ setosa│
  │ 4.9        │ 3.0       │ 1.4        │ 0.2       │ setosa│
  │ 4.7        │ 3.2       │ 1.3        │ 0.2       │ setosa│
  │ 4.6        │ 3.1       │ 1.5        │ 0.2       │ setosa│
  │ 5.0        │ 3.6       │ 1.4        │ 0.2       │ setosa│
  │ 5.4        │ 3.9       │ 1.7        │ 0.4       │ setosa│
  └────────────┴───────────┴────────────┴───────────┴───────┘
Code
  cat(cli_table(df, border_style = style, header = FALSE), sep = "\n")
Output
  ┌───┬───┬───┬───┬──────┐
  │5.1│3.5│1.4│0.2│setosa│
  │4.9│3.0│1.4│0.2│setosa│
  │4.7│3.2│1.3│0.2│setosa│
  │4.6│3.1│1.5│0.2│setosa│
  │5.0│3.6│1.4│0.2│setosa│
  │5.4│3.9│1.7│0.4│setosa│
  └───┴───┴───┴───┴──────┘
Code
  cat(cli_table(df, border_style = style), sep = "\n")
Output
  ╔════════════╦═══════════╦════════════╦═══════════╦═══════╗
  ║Sepal.Length║Sepal.Width║Petal.Length║Petal.Width║Species║
  ╠════════════╬═══════════╬════════════╬═══════════╬═══════╣
  ║ 5.1        ║ 3.5       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 4.9        ║ 3.0       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 4.7        ║ 3.2       ║ 1.3        ║ 0.2       ║ setosa║
  ║ 4.6        ║ 3.1       ║ 1.5        ║ 0.2       ║ setosa║
  ║ 5.0        ║ 3.6       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 5.4        ║ 3.9       ║ 1.7        ║ 0.4       ║ setosa║
  ╚════════════╩═══════════╩════════════╩═══════════╩═══════╝
Code
  cat(cli_table(df, border_style = style, header = FALSE), sep = "\n")
Output
  ╔═══╦═══╦═══╦═══╦══════╗
  ║5.1║3.5║1.4║0.2║setosa║
  ║4.9║3.0║1.4║0.2║setosa║
  ║4.7║3.2║1.3║0.2║setosa║
  ║4.6║3.1║1.5║0.2║setosa║
  ║5.0║3.6║1.4║0.2║setosa║
  ║5.4║3.9║1.7║0.4║setosa║
  ╚═══╩═══╩═══╩═══╩══════╝
Code
  cat(cli_table(df, border_style = style), sep = "\n")
Output
  ╓────────────╥───────────╥────────────╥───────────╥───────╖
  ║Sepal.Length║Sepal.Width║Petal.Length║Petal.Width║Species║
  ╟────────────╫───────────╫────────────╫───────────╫───────╢
  ║ 5.1        ║ 3.5       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 4.9        ║ 3.0       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 4.7        ║ 3.2       ║ 1.3        ║ 0.2       ║ setosa║
  ║ 4.6        ║ 3.1       ║ 1.5        ║ 0.2       ║ setosa║
  ║ 5.0        ║ 3.6       ║ 1.4        ║ 0.2       ║ setosa║
  ║ 5.4        ║ 3.9       ║ 1.7        ║ 0.4       ║ setosa║
  ╙────────────╨───────────╨────────────╨───────────╨───────╜
Code
  cat(cli_table(df, border_style = style, header = FALSE), sep = "\n")
Output
  ╓───╥───╥───╥───╥──────╖
  ║5.1║3.5║1.4║0.2║setosa║
  ║4.9║3.0║1.4║0.2║setosa║
  ║4.7║3.2║1.3║0.2║setosa║
  ║4.6║3.1║1.5║0.2║setosa║
  ║5.0║3.6║1.4║0.2║setosa║
  ║5.4║3.9║1.7║0.4║setosa║
  ╙───╨───╨───╨───╨──────╜
Code
  cat(cli_table(df, border_style = style), sep = "\n")
Output
  ╒════════════╤═══════════╤════════════╤═══════════╤═══════╕
  │Sepal.Length│Sepal.Width│Petal.Length│Petal.Width│Species│
  ╞════════════╪═══════════╪════════════╪═══════════╪═══════╡
  │ 5.1        │ 3.5       │ 1.4        │ 0.2       │ setosa│
  │ 4.9        │ 3.0       │ 1.4        │ 0.2       │ setosa│
  │ 4.7        │ 3.2       │ 1.3        │ 0.2       │ setosa│
  │ 4.6        │ 3.1       │ 1.5        │ 0.2       │ setosa│
  │ 5.0        │ 3.6       │ 1.4        │ 0.2       │ setosa│
  │ 5.4        │ 3.9       │ 1.7        │ 0.4       │ setosa│
  ╘════════════╧═══════════╧════════════╧═══════════╧═══════╛
Code
  cat(cli_table(df, border_style = style, header = FALSE), sep = "\n")
Output
  ╒═══╤═══╤═══╤═══╤══════╕
  │5.1│3.5│1.4│0.2│setosa│
  │4.9│3.0│1.4│0.2│setosa│
  │4.7│3.2│1.3│0.2│setosa│
  │4.6│3.1│1.5│0.2│setosa│
  │5.0│3.6│1.4│0.2│setosa│
  │5.4│3.9│1.7│0.4│setosa│
  ╘═══╧═══╧═══╧═══╧══════╛
Code
  cat(cli_table(df, border_style = style), sep = "\n")
Output
  +------------+-----------+------------+-----------+-------+
  |Sepal.Length|Sepal.Width|Petal.Length|Petal.Width|Species|
  +------------+-----------+------------+-----------+-------+
  | 5.1        | 3.5       | 1.4        | 0.2       | setosa|
  | 4.9        | 3.0       | 1.4        | 0.2       | setosa|
  | 4.7        | 3.2       | 1.3        | 0.2       | setosa|
  | 4.6        | 3.1       | 1.5        | 0.2       | setosa|
  | 5.0        | 3.6       | 1.4        | 0.2       | setosa|
  | 5.4        | 3.9       | 1.7        | 0.4       | setosa|
  +------------+-----------+------------+-----------+-------+
Code
  cat(cli_table(df, border_style = style, header = FALSE), sep = "\n")
Output
  +---+---+---+---+------+
  |5.1|3.5|1.4|0.2|setosa|
  |4.9|3.0|1.4|0.2|setosa|
  |4.7|3.2|1.3|0.2|setosa|
  |4.6|3.1|1.5|0.2|setosa|
  |5.0|3.6|1.4|0.2|setosa|
  |5.4|3.9|1.7|0.4|setosa|
  +---+---+---+---+------+
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ [41m21[49m │ 6 │160.0│[42m110[49m│3.90│2.620│16.46│ 0│ 1│ 4  │ [41m4[49m  │
  │ [41m21[49m │ 6 │160.0│[42m110[49m│3.90│2.875│17.02│ 0│ 1│ 4  │ [41m4[49m  │
  │[41m22.8[49m│ 4 │108.0│ [42m93[49m│3.85│2.320│18.61│ 1│ 1│ 4  │ [42m1[49m  │
  │[41m21.4[49m│ 6 │258.0│[42m110[49m│3.08│3.215│19.44│ 1│ 0│ 3  │ [42m1[49m  │
  │[42m18.7[49m│ 8 │360.0│[41m175[49m│3.15│3.440│17.02│ 0│ 0│ 3  │ [42m2[49m  │
  │[42m18.1[49m│ 6 │225.0│[42m105[49m│2.76│3.460│20.22│ 1│ 0│ 3  │ [42m1[49m  │
  │[42m14.3[49m│ 8 │360.0│[41m245[49m│3.21│3.570│15.84│ 0│ 0│ 3  │ [41m4[49m  │
  │[41m24.4[49m│ 4 │146.7│ [42m62[49m│3.69│3.190│20.00│ 1│ 0│ 4  │ [42m2[49m  │
  │[41m22.8[49m│ 4 │140.8│ [42m95[49m│3.92│3.150│22.90│ 1│ 0│ 4  │ [42m2[49m  │
  │[42m19.2[49m│ 6 │167.6│[42m123[49m│3.92│3.440│18.30│ 1│ 0│ 4  │ [41m4[49m  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ [43m21[49m │ 6 │160.0│[44m110[49m│3.90│2.620│16.46│ 0│ 1│ 4  │ [43m4[49m  │
  │ [43m21[49m │ 6 │160.0│[44m110[49m│3.90│2.875│17.02│ 0│ 1│ 4  │ [43m4[49m  │
  │[43m22.8[49m│ 4 │108.0│ [44m93[49m│3.85│2.320│18.61│ 1│ 1│ 4  │ [44m1[49m  │
  │[43m21.4[49m│ 6 │258.0│[44m110[49m│3.08│3.215│19.44│ 1│ 0│ 3  │ [44m1[49m  │
  │[44m18.7[49m│ 8 │360.0│[43m175[49m│3.15│3.440│17.02│ 0│ 0│ 3  │ [44m2[49m  │
  │[44m18.1[49m│ 6 │225.0│[44m105[49m│2.76│3.460│20.22│ 1│ 0│ 3  │ [44m1[49m  │
  │[44m14.3[49m│ 8 │360.0│[43m245[49m│3.21│3.570│15.84│ 0│ 0│ 3  │ [43m4[49m  │
  │[43m24.4[49m│ 4 │146.7│ [44m62[49m│3.69│3.190│20.00│ 1│ 0│ 4  │ [44m2[49m  │
  │[43m22.8[49m│ 4 │140.8│ [44m95[49m│3.92│3.150│22.90│ 1│ 0│ 4  │ [44m2[49m  │
  │[44m19.2[49m│ 6 │167.6│[44m123[49m│3.92│3.440│18.30│ 1│ 0│ 4  │ [43m4[49m  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ [41m21[49m │ 6 │160.0│110│3.90│2.620│16.46│ 0│ 1│ 4  │ 4  │
  │ [41m21[49m │ 6 │160.0│110│3.90│2.875│17.02│ 0│ 1│ 4  │ 4  │
  │[41m22.8[49m│ 4 │108.0│ 93│3.85│2.320│18.61│ 1│ 1│ 4  │ 1  │
  │[41m21.4[49m│ 6 │258.0│110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │
  │[42m18.7[49m│ 8 │360.0│175│3.15│3.440│17.02│ 0│ 0│ 3  │ 2  │
  │[42m18.1[49m│ 6 │225.0│105│2.76│3.460│20.22│ 1│ 0│ 3  │ 1  │
  │[42m14.3[49m│ 8 │360.0│245│3.21│3.570│15.84│ 0│ 0│ 3  │ 4  │
  │[41m24.4[49m│ 4 │146.7│ 62│3.69│3.190│20.00│ 1│ 0│ 4  │ 2  │
  │[41m22.8[49m│ 4 │140.8│ 95│3.92│3.150│22.90│ 1│ 0│ 4  │ 2  │
  │[42m19.2[49m│ 6 │167.6│123│3.92│3.440│18.30│ 1│ 0│ 4  │ 4  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ 21 │ 6 │ 160 │110│ 3.9│ 2.62│16.46│ 0│ 1│ 4  │ 4  │
  [41m│ 21 │ 6 │ 160 │110│ 3.9│2.875│17.02│ 0│ 1│ 4  │ 4  │[49m
  │22.8│ 4 │ 108 │ 93│3.85│ 2.32│18.61│ 1│ 1│ 4  │ 1  │
  │21.4│ 6 │ 258 │110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │
  │18.7│ 8 │ 360 │175│3.15│ 3.44│17.02│ 0│ 0│ 3  │ 2  │
  │18.1│ 6 │ 225 │105│2.76│ 3.46│20.22│ 1│ 0│ 3  │ 1  │
  │14.3│ 8 │ 360 │245│3.21│ 3.57│15.84│ 0│ 0│ 3  │ 4  │
  │24.4│ 4 │146.7│ 62│3.69│ 3.19│ 20  │ 1│ 0│ 4  │ 2  │
  │22.8│ 4 │140.8│ 95│3.92│ 3.15│ 22.9│ 1│ 0│ 4  │ 2  │
  │19.2│ 6 │167.6│123│3.92│ 3.44│ 18.3│ 1│ 0│ 4  │ 4  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  [41m│ 21 │ 6 │ 160 │110│ 3.9│ 2.62│16.46│ 0│ 1│ 4  │ 4  │[49m
  │ 21 │ 6 │ 160 │110│ 3.9│2.875│17.02│ 0│ 1│ 4  │ 4  │
  [41m│22.8│ 4 │ 108 │ 93│3.85│ 2.32│18.61│ 1│ 1│ 4  │ 1  │[49m
  │21.4│ 6 │ 258 │110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │
  │18.7│ 8 │ 360 │175│3.15│ 3.44│17.02│ 0│ 0│ 3  │ 2  │
  │18.1│ 6 │ 225 │105│2.76│ 3.46│20.22│ 1│ 0│ 3  │ 1  │
  [41m│14.3│ 8 │ 360 │245│3.21│ 3.57│15.84│ 0│ 0│ 3  │ 4  │[49m
  │24.4│ 4 │146.7│ 62│3.69│ 3.19│ 20  │ 1│ 0│ 4  │ 2  │
  │22.8│ 4 │140.8│ 95│3.92│ 3.15│ 22.9│ 1│ 0│ 4  │ 2  │
  │19.2│ 6 │167.6│123│3.92│ 3.44│ 18.3│ 1│ 0│ 4  │ 4  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ 21 │ 6 │ 160 │110│ 3.9│ 2.62│16.46│ 0│ 1│ 4  │ 4  │
  [41m│ 21 │ 6 │ 160 │110│ 3.9│2.875│17.02│ 0│ 1│ 4  │ 4  │[49m
  │22.8│ 4 │ 108 │ 93│3.85│ 2.32│18.61│ 1│ 1│ 4  │ 1  │
  [41m│21.4│ 6 │ 258 │110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │[49m
  │18.7│ 8 │ 360 │175│3.15│ 3.44│17.02│ 0│ 0│ 3  │ 2  │
  [41m│18.1│ 6 │ 225 │105│2.76│ 3.46│20.22│ 1│ 0│ 3  │ 1  │[49m
  │14.3│ 8 │ 360 │245│3.21│ 3.57│15.84│ 0│ 0│ 3  │ 4  │
  [41m│24.4│ 4 │146.7│ 62│3.69│ 3.19│ 20  │ 1│ 0│ 4  │ 2  │[49m
  │22.8│ 4 │140.8│ 95│3.92│ 3.15│ 22.9│ 1│ 0│ 4  │ 2  │
  [41m│19.2│ 6 │167.6│123│3.92│ 3.44│ 18.3│ 1│ 0│ 4  │ 4  │[49m
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬─┬─────┬───┬────┬─────┬─────┬─┬─┬─┬─┐
  │ 21 │6│ 160 │110│ 3.9│ 2.62│16.46│0│1│4│4│
  │ 21 │6│ 160 │110│ 3.9│2.875│17.02│0│1│4│4│
  │22.8│4│ 108 │ 93│3.85│ 2.32│18.61│1│1│4│1│
  │21.4│6│ 258 │110│3.08│3.215│19.44│1│0│3│1│
  │18.7│8│ 360 │175│3.15│ 3.44│17.02│0│0│3│2│
  │18.1│6│ 225 │105│2.76│ 3.46│20.22│1│0│3│1│
  │14.3│8│ 360 │245│3.21│ 3.57│15.84│0│0│3│4│
  │24.4│4│146.7│ 62│3.69│ 3.19│ 20  │1│0│4│2│
  │22.8│4│140.8│ 95│3.92│ 3.15│ 22.9│1│0│4│2│
  │19.2│6│167.6│123│3.92│ 3.44│ 18.3│1│0│4│4│
  └────┴─┴─────┴───┴────┴─────┴─────┴─┴─┴─┴─┘
Code
  cat(ct, sep = "\n")
Output
  ┌────┬───┬─────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  [1m│ mpg│cyl│ disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│[22m
  ├────┼───┼─────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ 21 │ 6 │ 160 │110│ 3.9│ 2.62│16.46│ 0│ 1│ 4  │ 4  │
  │ 21 │ 6 │ 160 │110│ 3.9│2.875│17.02│ 0│ 1│ 4  │ 4  │
  │22.8│ 4 │ 108 │ 93│3.85│ 2.32│18.61│ 1│ 1│ 4  │ 1  │
  │21.4│ 6 │ 258 │110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │
  │18.7│ 8 │ 360 │175│3.15│ 3.44│17.02│ 0│ 0│ 3  │ 2  │
  │18.1│ 6 │ 225 │105│2.76│ 3.46│20.22│ 1│ 0│ 3  │ 1  │
  │14.3│ 8 │ 360 │245│3.21│ 3.57│15.84│ 0│ 0│ 3  │ 4  │
  │24.4│ 4 │146.7│ 62│3.69│ 3.19│ 20  │ 1│ 0│ 4  │ 2  │
  │22.8│ 4 │140.8│ 95│3.92│ 3.15│ 22.9│ 1│ 0│ 4  │ 2  │
  │19.2│ 6 │167.6│123│3.92│ 3.44│ 18.3│ 1│ 0│ 4  │ 4  │
  └────┴───┴─────┴───┴────┴─────┴─────┴──┴──┴────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌───────┬─────────┬────────┬────────┬───────────┬─────────┬──────┬────┐
  │species│ island  │bill_len│bill_dep│flipper_len│body_mass│ sex  │year│
  ├───────┼─────────┼────────┼────────┼───────────┼─────────┼──────┼────┤
  │ Adelie│Torgersen│ 39.1   │ 18.7   │ 181       │ 3750    │ male │2007│
  │ Adelie│Torgersen│ 39.5   │ 17.4   │ 186       │ 3800    │female│2007│
  │ Adelie│Torgersen│ 40.3   │ 18.0   │ 195       │ 3250    │female│2007│
  │ Adelie│Torgersen│ NA     │ NA     │ NA        │ NA      │ NA   │2007│
  │ Adelie│Torgersen│ 36.7   │ 19.3   │ 193       │ 3450    │female│2007│
  │ Adelie│Torgersen│ 39.3   │ 20.6   │ 190       │ 3650    │ male │2007│
  └───────┴─────────┴────────┴────────┴───────────┴─────────┴──────┴────┘
Code
  cat(ct, sep = "\n")
Output
  ┌───────┬─────────┬────────┬────────┬───────────┬─────────┬──────┬────┐
  │species│ island  │bill_len│bill_dep│flipper_len│body_mass│ sex  │year│
  ├───────┼─────────┼────────┼────────┼───────────┼─────────┼──────┼────┤
  │ Adelie│Torgersen│ 39.1   │ 18.7   │ 181       │ 3750    │ male │2007│
  │ Adelie│Torgersen│ 39.5   │ 17.4   │ 186       │ 3800    │female│2007│
  │ Adelie│Torgersen│ 40.3   │ 18.0   │ 195       │ 3250    │female│2007│
  │ Adelie│Torgersen│ [9mNA[29m     │ [9mNA[29m     │ [9mNA[29m        │ [9mNA[29m      │ [9mNA[29m   │2007│
  │ Adelie│Torgersen│ 36.7   │ 19.3   │ 193       │ 3450    │female│2007│
  │ Adelie│Torgersen│ 39.3   │ 20.6   │ 190       │ 3650    │ male │2007│
  └───────┴─────────┴────────┴────────┴───────────┴─────────┴──────┴────┘

cli_table_and_crayon

Code
  cat(ct, sep = "\n")
Output
  ┌────┬─────────────────────────────────────────────────────────────────┬────┬───┬────┬─────┬─────┬──┬──┬────┬────┐
  │ mpg│ cyl                                                             │disp│ hp│drat│ wt  │ qsec│vs│am│gear│carb│
  ├────┼─────────────────────────────────────────────────────────────────┼────┼───┼────┼─────┼─────┼──┼──┼────┼────┤
  │ [33m[45m[1m3[22m[49m[39m  │ 6                                                               │ 160│110│3.90│2.620│16.46│ 0│ 1│ 4  │ 4  │
  │ 21 │[32mI am a green line [34m[4m[1mwith a blue substring[22m[24m[32m that becomes green again![39m│ 160│110│3.90│2.875│17.02│ 0│ 1│ 4  │ 4  │
  │22.8│ 4                                                               │ 108│ 93│3.85│2.320│18.61│ 1│ 1│ 4  │ 1  │
  │21.4│ 6                                                               │ 258│110│3.08│3.215│19.44│ 1│ 0│ 3  │ 1  │
  │18.7│ 8                                                               │ 360│175│3.15│3.440│17.02│ 0│ 0│ 3  │ 2  │
  │18.1│ 6                                                               │ 225│105│2.76│3.460│20.22│ 1│ 0│ 3  │ 1  │
  └────┴─────────────────────────────────────────────────────────────────┴────┴───┴────┴─────┴─────┴──┴──┴────┴────┘

cli_row

Code
  cat(x, "\n")
Output
  │Sepal.Length│Sepal.Width│Petal.Length│Petal.Width│Species│
Code
  cat(x2, "\n")
Output
  │  Sepal.Length  │  Sepal.Width  │  Petal.Length  │  Petal.Width  │  Species  │


Try the clitable package in your browser

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

clitable documentation built on Nov. 5, 2025, 5:27 p.m.