[R] suppress startup messages from default packages

David Winsemius dwinsemius at comcast.net
Mon Jul 15 19:44:22 CEST 2013


On Jul 15, 2013, at 4:11 AM, Andreas Leha wrote:

> Hi all,
> 
> several packages print messages during loading.  How do I avoid to see
> them when the packages are in the defaultPackages?

I'm pretty sure this has been asked before (although the wrinkle of adding a package to default packages may not have been part of that discussion.)  Have you done any searching of the Archives?
> 
> Here is an example.
> 
> With this in ~/.Rprofile
> ,----[ ~/.Rprofile ]
> | old <- getOption("defaultPackages")
> | options(defaultPackages = c(old, "filehash"))
> | rm(old)
> `----
> 
> I get as last line when starting R:
> ,----
> | filehash: Simple key-value database (2.2-1 2012-03-12)
> `----
> 
> Another package with (even more) prints during startup is tikzDevice.
> 
> How can I avoid to get these messages?

On my machine typing suppress<tab> brings up an option of:

 suppressPackageStartupMessages

You should append a leading "?" and read further.

-- 
David Winsemius
Alameda, CA, USA



More information about the R-help mailing list