[R] Silently loading an R package.
Guillaume Yziquel
guillaume.yziquel at citycable.ch
Sat Nov 14 01:02:23 CET 2009
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.
> yziquel at seldon:~$ ocaml-batteries
> Objective Caml version 3.11.1
>
> _________________________________
> | | | |
> [| + | | Batteries Included - |
> |_______|_|_______________________|
> _________________________________
> | | | |
> | - Type '#help;;' | | + |]
> |_______________________|_|_______|
>
>
> # #require "R.interpreter";;
> # R.sexp "require(xts)";;
> Le chargement a nécessité le package : xts
> Le chargement a nécessité le package : zoo
>
> Attachement du package : 'zoo'
>
>
> The following object(s) are masked from package:base :
>
> as.Date.numeric
>
> xts now requires a valid TZ variable to be set
> no TZ var is set, setting to TZ=GMT
> - : R.sexp = <abstr>
> #
--
Guillaume Yziquel
http://yziquel.homelinux.org/
More information about the R-help
mailing list