Debian Codegraph @

tests/testthat/_snaps/gtable.md

raw
1 # as.gtable sensibly converts objects
2
3 Code
4 as.gtable(g2, widths = unit(c(1, 1), "cm"))
5 Condition
6 Warning:
7 `widths` truncated to length 1.
8 Output
9 TableGrob (1 x 1) "layout": 1 grobs
10 z cells name grob
11 1 1 (1-1,1-1) layout circle[GRID.circle.9]
12
13 ---
14
15 Code
16 as.gtable(g2, heights = unit(c(1, 1), "cm"))
17 Condition
18 Warning:
19 `heights` truncated to length 1.
20 Output
21 TableGrob (1 x 1) "layout": 1 grobs
22 z cells name grob
23 1 1 (1-1,1-1) layout circle[GRID.circle.9]
24
25 ---
26
27 Code
28 as.gtable(1:5)
29 Condition
30 Error in `as.gtable()`:
31 ! Can't convert an integer vector to a <gtable>.
32
33 ---
34
35 Code
36 as.gtable(g1, foo = "bar")
37 Condition
38 Error in `as.gtable()`:
39 ! Arguments in `...` must be used.
40 x Problematic argument:
41 * foo = "bar"
42 i Did you misspell an argument name?
43