From sfalcon at fhcrc.org  Sun Feb 25 18:46:54 2007
From: sfalcon at fhcrc.org (Seth Falcon)
Date: Sun, 25 Feb 2007 09:46:54 -0800
Subject: [Rd] Depending on many packages: another best practice question
In-Reply-To: <971536df0702250738o168336e5q67fd997eb86958ae@mail.gmail.com>
	(Gabor Grothendieck's message of "Sun,
	25 Feb 2007 10:38:18 -0500")
References: <f8e6ff050702231738x74d515c1pd246403fdf8ad21a@mail.gmail.com>
	<Pine.LNX.4.64.0702241828570.14494@gannet.stats.ox.ac.uk>
	<f8e6ff050702241121q1890ab16sff1d19bbb432eff6@mail.gmail.com>
	<Pine.LNX.4.64.0702242013310.15657@gannet.stats.ox.ac.uk>
	<f8e6ff050702250657i1ff01035je267f64a5d584b85@mail.gmail.com>
	<971536df0702250738o168336e5q67fd997eb86958ae@mail.gmail.com>
Message-ID: <m2tzxam8oh.fsf@ziti.local>

"Gabor Grothendieck" <ggrothendieck at gmail.com> writes:

> You can use
>
> if(require(myPackage)) { ... }

Probably you will want:

  if (suppressWarnings(require("somePkg"))) { ... }

This way, you won't get a lot of noise when somePkg isn't installed.

Running the examples at least some of the time seems like a nice idea
to assure basic functionality...

+ seth



[Rd] Depending on many packages: another best practice question
Seth Falcon