Hi Joris,
If I run the following in a fresh, interactive R session, I don't get anything back:
options(tidyverse.quiet = TRUE)
library(ggplot2)
Granted, I do have the tidyverse package installed, but it's not loaded or attached. So, that could be the difference. I just tested this in a new RStudio cloud project with only ggplot2 installed, and that does seem to make the difference.
If the tidyverse package is installed, and you're getting messages from ggplot2 in non-interactive sessions, it's definitely a bug.
I'm certainly not suggesting installing the tidyverse package as a solution. (I'm basically fleshing this out to be a feature request at this point).
Given ggplot2 is the source of the message, and we have a solution for this elsewhere, might we use the same convention directly in ggplot?
FWIW, we are thinking about how to do a better job of handling the levels of "chattiness"/verbosity with logging in mind.
This isn't quite the same scenario being discussed in the issue below, but it might be of interest nonetheless. (n.b. It's in principles, so it's decidedly "big-picture" — so, definitely go forth with your favourite workaround in mind).