Skip to content
Back to formatted view

Raw Message

Message-ID: <971536df0612271021v1c1327b1i69e86ebf557b5a36@mail.gmail.com>
Date: 2006-12-27T18:21:23Z
From: Gabor Grothendieck
Subject: how to suppress a "loading required package: ..." message
In-Reply-To: <17810.45032.805061.648736@basebud.nulle.part>

Or try:

   invisible(capture.output(library(Hmisc)))




On 12/27/06, Dirk Eddelbuettel <edd at debian.org> wrote:
>
> On 27 December 2006 at 08:52, BBands wrote:
> | On 12/27/06, jacinthe at gmx.de <jacinthe at gmx.de> wrote:
> | > Hi,
> | >
> | > how to suppress a "loading required package:... " message?
> |
> | require(package, quiet=TRUE)
>
> Some packages insist on talking even when they are asked to be quiet, in
> which case I have also resorted to wrapping sink() around the loading:
>
>        > sink("/dev/null")
>        > library(Hmisc)
>        > sink()
>        > cat("Hi again\n")
>        Hi again
>        >
>
> Hth, Dirk
>
> --
> Hell, there are no rules here - we're trying to accomplish something.
>                                                  -- Thomas A. Edison
>
> ______________________________________________
> R-help at stat.math.ethz.ch 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.
>