Re: [R] Is there a way force hiding of all messages when calling library()?

2011-12-21 Thread Saiwing Yeung
suppressPackageStartupMessages(library(spam)) takes care of that, thanks!! On Dec 21, 2011, at 3:39 PM, Hadley Wickham wrote: > You should be able to suppress them with > suppressPackageStartupMessages() but not all packages produce startup > messages in the approved manner. > > Hadley > > O

Re: [R] Is there a way force hiding of all messages when calling library()?

2011-12-21 Thread Hadley Wickham
You should be able to suppress them with suppressPackageStartupMessages() but not all packages produce startup messages in the approved manner. Hadley On Wed, Dec 21, 2011 at 5:36 PM, Saiwing Yeung wrote: > For example, if I call "library(spam)", I would get messages like this > > Package 'spam'

[R] Is there a way force hiding of all messages when calling library()?

2011-12-21 Thread Saiwing Yeung
For example, if I call "library(spam)", I would get messages like this Package 'spam' is loaded. Spam version 0.27-0 (2011-08-17). Type demo( spam) for some demos, help( Spam) for an overview of this package. Help for individual functions is optained by adding the suffix '.spam' to the function na