Skip to content

Silently loading an R package.

3 messages · Guillaume Yziquel, Yihui Xie

#
Hello.

I've been working an a binding between OCaml and R (i.e. calling R from 
OCaml, mostly). See below for a taste of it.

I'm currently wondering how to load a given R package silently. I tried

	require(xts, quietly = TRUE)

but I still get some ugly output. Is it possible to squeeze off this 
output on stdout?

All the best,

Guillaume Yziquel.

  
    
#
please read the 'Details' section of ?require

     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.

Regards,
Yihui
--
Yihui Xie <xieyihui at gmail.com>
Phone: 515-294-6609 Web: http://yihui.name
Department of Statistics, Iowa State University
3211 Snedecor Hall, Ames, IA



On Fri, Nov 13, 2009 at 6:02 PM, Guillaume Yziquel
<guillaume.yziquel at citycable.ch> wrote:
#
Yihui Xie a ?crit :
Thank you so much...

Guillaume Yziquel.