Christofer Bogaso
2010-Nov-01 18:39 UTC
[R] How to stop showing messages while loading package?
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]]
Erik Iverson
2010-Nov-01 18:46 UTC
[R] How to stop showing messages while loading package?
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.