Re: [Rd] library verbose option doesn't stop "Loading required package XYZ"

From: Dominick Samperi <djsamperi_at_gmail.com>
Date: Wed, 20 Oct 2010 19:25:48 -0400

Thanks David, but this doesn't work. Under R 2.12.0 the "Loading required packages"
messages appear under R 2.12.0 when I use, for example:

Rscript --vanilla -e "{ invisible(library(cxxPack)); cat(sqrt(2)) }"

On Wed, Oct 20, 2010 at 7:00 PM, David Winsemius <dwinsemius_at_comcast.net>wrote:

>
> On Oct 20, 2010, at 6:49 PM, Dominick Samperi wrote:
>
> Hello,
>>
>> The library verbose option does not stop numerous messages
>> of the form "Loading required package: XYZ". This is inconvenient
>> when a package is loaded repeatedly using Rscript.
>>
>> Is there a way to turn off the "Loading required package"
>> messages?
>>
>
> ?invisible
> > invisible(require(Hmisc))
> > invisible(library(rms) ) # no console messages
>
> I do not think this suppress the messages when you attempt to load a
> non-existent package. For that you may need to look at the options() setting
> for warn and warning.expression
>
>>
>> One possible work-around is to make packages Suggested
>> instead of Required, but this introduces other issues.
>>
>> Thanks,
>> Dominick
>>
>> [[alternative HTML version deleted]]
>>
>> ______________________________________________
>> R-devel_at_r-project.org mailing list
>> https://stat.ethz.ch/mailman/listinfo/r-devel
>>
>
> David Winsemius, MD
> West Hartford, CT
>
>

        [[alternative HTML version deleted]]



R-devel_at_r-project.org mailing list
https://stat.ethz.ch/mailman/listinfo/r-devel Received on Wed 20 Oct 2010 - 23:29:29 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 21 Oct 2010 - 14:50:11 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-devel. Please read the posting guide before posting to the list.

list of date sections of archive