I mentioned the same thing a couple of months ago but didn't get a
response: https://stat.ethz.ch/pipermail/r-devel/2019-May/04.html
In your case of package vignettes, it is easy enough to suppress the
messages via the knitr chunk option message = FALSE. However, I still
wonder if it will be a
Ben and Henrik,
My package tends to load other packages ‘ namespaces on an as-needed basis,
e.g. ggplot2 when a plotting function is called. I have been thinking I would
use suppressMessages() in my code, but it is probably a better idea to instead
have a setup chunk in each vignette that loads
Dear Russ,
I had the same problem in my vignettes and setting both message and warning
to FALSE seems to remove all unwanted output:
```{r message=FALSE, warning=FALSE}
library("afex")
library("ggplot2")
library("cowplot")
theme_set(theme_grey())
```
Result:
https://cran.r-project.org/web/packag
Does setting message=FALSE in the chunk options of the vignette help?
Or less preferably, using supressMessages() ?
On 2019-07-23 9:36 a.m., Lenth, Russell V wrote:
> Lionel,
>
> Thanks for your response. I understand that method overriding can be a
> serious issue, but as you say, this i
Lionel,
Thanks for your response. I understand that method overriding can be a serious
issue, but as you say, this is not something that the user can act upon. Yet
the message lands at the user’s feet.
In my case, the messages are cluttering my package vignettes, and may or may
not represent