11

How does one turn off the many lines of messages when loading tidyverse in R? It doesn't respect the quietly parameter (e.g., library(tidyverse, quietly = TRUE)). Sometimes I might want to see all of the packages it attaches and conflicts, but most of the time I can do without it or would like a less obnoxious report. Any hints on how to do this?

I'm using tidyverse 1.2.1 under R 3.4.3 on macOS 10.12.6, but am guessing this is same behavior on other systems.

Rick Donnelly
  • 1,403
  • 3
  • 12
  • 10

2 Answers2

13

An alternative to suppressPackageStartupMessages is to set options(tidyverse.quiet = TRUE), which you can include in your .Rprofile.

Source: https://www.tidyverse.org/articles/2017/11/tidyverse_1.2.0/

Mirabilis
  • 471
  • 3
  • 6
12
suppressPackageStartupMessages(library(tidyverse))
  • 4
    Awesome, thanks. Seems like a lot of trouble to go through because the developers cannot be bothered to respect the quietly parameter, but it works. Maybe that parameter isn't visible to the package developers? – Rick Donnelly Feb 03 '18 at 18:32
  • 1
    I'm guessing this is quite intentional coming from Hadley. It is disappointing, though, that `warn.conflicts=FALSE` does not work with `tidyverse` as it has with other packages like `dplyr`, see [here](https://github.com/tidyverse/dplyr/issues/776) – code_cowboy Apr 05 '18 at 15:55