Closed
Description
ggsave to svg operation is failing when certain themes are used:
require(ggplot2)
#> Loading required package: ggplot2
p = qplot(Sepal.Length, data=iris, geom='density') + theme_void()
ggsave(p, filename = 'test.svg', w=8, h=6)
#> Error in svglite_(file, bg, width, height, pointsize, standalone, aliases): Expecting a single string value: [type=NULL; extent=0].
I've tested {ggplot} and {ggthemes} and the following show this error:
- ggplot::theme_void
- ggplot::theme_minimal
- ggthemes::theme_map
- ggthemes::theme_tufte
- ggthemes::theme_solid
I'm running macOS 10.15.5, R 4.0.2, ggplot 3.3.2.9000.