File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change 4747
4848 Ignoring empty aesthetics: `fill` and `shape`.
4949
50+ # aesthetics defined twice create warning
51+
52+ The size aesthetic is defined twice: once in `mapping` and once as a static aesthetic.
53+ i The static aesthetic overrules the mapped aesthetic.
54+
5055# invalid aesthetics throws errors
5156
5257 Problem while computing aesthetics.
Original file line number Diff line number Diff line change @@ -33,6 +33,10 @@ test_that("empty aesthetics create warning", {
3333 expect_snapshot_warning(ggplot_build(p ))
3434})
3535
36+ test_that(" aesthetics defined twice create warning" , {
37+ expect_snapshot_warning(geom_point(aes(size = foo ), size = 12 ))
38+ })
39+
3640test_that(" invalid aesthetics throws errors" , {
3741 # We want to test error and ignore the scale search message
3842 suppressMessages({
You can’t perform that action at this time.
0 commit comments