Join GitHub today
check.class argument to ggsave #970
optional by-pass of ggsave checks that an object of class ggplot is being recorded.
Hmmm, I don't really like adding an additional argument. Any thoughts on alternative ways to check if it's saveable? Maybe we could have?
is_gridable <- function(x) UseMethod("is_gridable") is_gridable.ggplot <- function(x) TRUE is_gridable.grob <- function(x) TRUE is_gridable.default <- function(x) FALSE