As a follow up to this question, suppose I do something like this:
p <- ggplot(mtcars, aes(mpg)) + geom_histogram(aes(y = ..count..)) + facet_wrap(~am)
r <- print(p)
In the second line I'm calling the print method just so that I can programmatically inspect its return value before adding additional layers to the plot object.
My question: Is there a way to suppress drawing the plot at that point?