-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Article describing how to handle (and suppress) package startup messages #187
Comments
Hmm, yes, in my life the tidyverse package was the worst offender, so I took the easy way out there! I am open to solving this more generally. Will you make another comment here, laying out the best options from #70 and I'll tag some others in to advise? |
To share my experience, for all the messages about masked functions, I often use in my reprex the Moreover, there is also a One solution could be to modify |
@jennybc: Great, thanks. I'll do that @cderv: Thanks for your thoughts. I'd not considered using arguments to |
@PeteHaitch , Good to know! thanks for trying. |
It still produces a lot of output, and at a quick glance I can't tell what (if anything) is different from when |
I have found |
Sorry for misleading here with The proposition in previous issue of adding a The other solution to call |
I don't really see an attractive way to fix this in reprex. I suggest an article showing the things a user can do to suppress these messages, so we can all link to it or re-read it when we need a refresher. |
- Adding quick syntax reminder - Removing the startuppackage - Revealing chunk code - Modifying paragraph about tidyverse_quiet Issue tidyverse#187
- Using package instead of library - Using attach instead of load - Removing {} around packages names - Setting tidyverse_quiet to FALSE - Adding .Rprofile configuration info Issue tidyverse#187
* Suppress startup messages: init article Issue #187 * startup messages: add reprex of fake package for tests #187 * Suppress startup messages: writing article Issue #187 * Suppress startup messages: corrections - Adding quick syntax reminder - Removing the startuppackage - Revealing chunk code - Modifying paragraph about tidyverse_quiet Issue #187 * Suppress startup messages: corrections - Using package instead of library - Using attach instead of load - Removing {} around packages names - Setting tidyverse_quiet to FALSE - Adding .Rprofile configuration info Issue #187 * Rename file * Shorten title * Work on the article * Add NEWS bullet
I almost always want to wrap
library()
insuppressPackageStartupMessages()
for my reprexes, but I always forget the first time around :( This is particularly true for Bioconductor packages, which tend to be very noisy because many depend on BiocGenerics (which masks a bunch of base function with equivalent S4 generics and reports this fact). For example, here I load the widely used SummarizedExperiment Bioconductor package:Created on 2018-03-28 by the reprex package (v0.2.0).
Session info
Created on 2018-03-28 by the reprex package (v0.2.0).
Yeeesh ...
I see
reprex()
has atidyverse_quiet
argument and that there was some discussion of the more general case in #70. Would you be amenable to revisiting this issue? I'd be happy to lead a PR.Thanks for a very useful package!
The text was updated successfully, but these errors were encountered: