Debian Codegraph @

tests/testthat/_snaps/ctl_compound.md

raw symbols SCIP
1 # compound pillars and multiple tiers
2
3 Code
4 options(width = 15)
5 tbl_format_setup(x, width = 30)
6 Output
7 <pillar_tbl_format_setup>
8 <tbl_format_header(setup)>
9 # A data frame: 1 x 2
10 <tbl_format_body(setup)>
11 a b$x
12 <dbl> <dbl>
13 1 3 1
14 $y
15 <dbl>
16 1 2
17 <tbl_format_footer(setup)>
18 Code
19 options(width = 10)
20 tbl_format_setup(x, width = 30)
21 Output
22 <pillar_tbl_format_setup>
23 <tbl_format_header(setup)>
24 # A data frame: 1 x 2
25 <tbl_format_body(setup)>
26 a
27 <dbl>
28 1 3
29 b$x
30 <dbl>
31 1 1
32 $y
33 <dbl>
34 1 2
35 <tbl_format_footer(setup)>
36
37 # compound pillars with zero columns (#402)
38
39 Code
40 tbl_format_setup(new_tbl(list(x = 1:2, y = matrix(integer(), ncol = 0, nrow = 2))))
41 Output
42 <pillar_tbl_format_setup>
43 <tbl_format_header(setup)>
44 # A data frame: 2 x 2
45 <tbl_format_body(setup)>
46 x y
47 <int> <int[,0]>
48 1 1
49 2 2
50 <tbl_format_footer(setup)>
51 Code
52 tbl_format_setup(new_tbl(list(x = 1:2, y = new_tbl(list(), n = 2L))))
53 Output
54 <pillar_tbl_format_setup>
55 <tbl_format_header(setup)>
56 # A data frame: 2 x 2
57 <tbl_format_body(setup)>
58 x y
59 <int> <tbl[,0]>
60 1 1
61 2 2
62 <tbl_format_footer(setup)>
63