1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59
|
# theme validation happens at build stage
The `text` theme element must be a <element_text> object.
---
Theme element `text` must have class <element_text>.
# incorrect theme specifications throw meaningful errors
Can't merge the `line` theme element.
Caused by error in `merge_element()`:
! Only elements of the same class can be merged.
---
Theme element `line` must have class <element_line>.
---
Theme element `test` has `NULL` property without default: fill, colour, linewidth, and linetype.
---
`new` must be a <theme> object, not the string "foo".
# element tree can be modified
The `blablabla` theme element is not defined in the element hierarchy.
---
The `blablabla` theme element must be a <character> object.
---
The `blablabla` theme element must be a <unit> object.
---
The `blablabla` theme element must be a <element_text> object.
# Theme elements are checked during build
`plot.title.position` must be one of "panel" or "plot", not "test".
---
`plot.caption.position` must be one of "panel" or "plot", not "test".
---
`plot.tag.position` must be one of "topleft", "top", "topright", "left", "right", "bottomleft", "bottom", or "bottomright", not "test".
i Did you mean "left"?
# Theme validation behaves as expected
The `aspect.ratio` theme element must be a <numeric/integer> object.
|