Debian Codegraph @

tests/testthat/_snaps/ctl_new_pillar.md

raw symbols SCIP
1 # ctl_new_pillar()
2
3 Code
4 ctl_new_pillar(new_tbl(), 1:3, width = 20, title = "a")
5 Output
6 <pillar>
7 a
8 <int>
9 1
10 2
11 3
12
13 # ctl_new_pillar_list()
14
15 Code
16 ctl_new_pillar_list(new_tbl(), 1:3, width = 20, title = "a")
17 Output
18 [[1]]
19 <pillar>
20 a
21 <int>
22 1
23 2
24 3
25
26 attr(,"remaining_width")
27 [1] 14
28 attr(,"simple")
29 [1] TRUE
30 Code
31 ctl_new_pillar_list(new_tbl(), trees[1:3, ], width = 8, title = "a")
32 Output
33 [[1]]
34 <pillar>
35 a$Girth
36 <dbl>
37 8.3
38 8.6
39 8.8
40
41 attr(,"extra")
42 [1] "Height" "Volume"
43 attr(,"remaining_width")
44 [1] 0
45 attr(,"simple")
46 [1] FALSE
47 Code
48 ctl_new_pillar_list(new_tbl(), trees[1:3, ], width = 20, title = "a")
49 Output
50 [[1]]
51 <pillar>
52 a$Girth
53 <dbl>
54 8.3
55 8.6
56 8.8
57
58 [[2]]
59 <pillar>
60 $Height
61 <dbl>
62 70
63 65
64 63
65
66 attr(,"extra")
67 [1] "Volume"
68 attr(,"remaining_width")
69 [1] 4
70 attr(,"simple")
71 [1] FALSE
72 Code
73 ctl_new_pillar_list(new_tbl(), as.matrix(trees[1:3, ]), width = 8, title = "a")
74 Output
75 list()
76 attr(,"extra")
77 [1] 1 2 3
78 attr(,"remaining_width")
79 [1] 8
80 attr(,"simple")
81 [1] FALSE
82 Code
83 ctl_new_pillar_list(new_tbl(), as.matrix(trees[1:3, ]), width = 20, title = "a")
84 Output
85 [[1]]
86 <pillar>
87 a[,"Girth"]
88 <dbl>
89 8.3
90 8.6
91 8.8
92
93 attr(,"extra")
94 [1] 2 3
95 attr(,"remaining_width")
96 [1] 8
97 attr(,"simple")
98 [1] FALSE
99 Code
100 ctl_new_pillar_list(new_tbl(), matrix(1:6, ncol = 2), width = 8, title = "a")
101 Output
102 [[1]]
103 <pillar>
104 a[,1]
105 <int>
106 1
107 2
108 3
109
110 attr(,"extra")
111 [1] 2
112 attr(,"remaining_width")
113 [1] 2
114 attr(,"simple")
115 [1] FALSE
116 Code
117 ctl_new_pillar_list(new_tbl(), matrix(1:6, ncol = 2), width = 20, title = "a")
118 Output
119 [[1]]
120 <pillar>
121 a[,1]
122 <int>
123 1
124 2
125 3
126
127 [[2]]
128 <pillar>
129 [,2]
130 <int>
131 4
132 5
133 6
134
135 attr(,"extra")
136 integer(0)
137 attr(,"remaining_width")
138 [1] 8
139 attr(,"simple")
140 [1] FALSE
141 Code
142 ctl_new_pillar_list(new_tbl(), matrix(1:6, ncol = 3), width = 10, title = "a")
143 Output
144 [[1]]
145 <pillar>
146 a[,1]
147 <int>
148 1
149 2
150
151 attr(,"extra")
152 [1] 2 3
153 attr(,"remaining_width")
154 [1] 4
155 attr(,"simple")
156 [1] FALSE
157
158 # ctl_new_pillar_list() for tables
159
160 Code
161 ctl_new_pillar_list(new_tbl(), Titanic, width = 20, title = "a")
162 Output
163 [[1]]
164 <pillar>
165 a
166 <table[,2,2,2]>
167 0 ...
168 0 ...
169 35 ...
170 0 ...
171
172 attr(,"remaining_width")
173 [1] 13
174 attr(,"simple")
175 [1] TRUE
176