[R] How to stop showing messages while loading package?

Erik Iverson eriki at ccbr.umn.edu
Mon Nov 1 19:46:52 CET 2010


Simply read the ?library help page, where you'll find under Details:

      To suppress messages during the loading of packages use
      ‘suppressPackageStartupMessages’: this will suppress all messages
      from R itself but not necessarily all those from package authors.


Christofer Bogaso wrote:
> Hi, is there any way to stop showing all messages which sometimes come while
> loading a packages? For example let say I want to load fBasics package. So I
> get following notices:
> 
>> library(fBasics)
> Loading required package: MASS
> Loading required package: timeDate
> Loading required package: timeSeries
> Attaching package: 'timeSeries'
> The following object(s) are masked from 'package:zoo':
>     time<-
> 
> Attaching package: 'fBasics'
> The following object(s) are masked from 'package:base':
>     norm
> I want to stop all above information to be shown. Would really aprreciate if
> somebody points any.
> 
> Thanks and regards,
> 
> 	[[alternative HTML version deleted]]
> 
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



More information about the R-help mailing list