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

Seth Falcon sfalcon at fhcrc.org
Sun Feb 25 18:46:54 CET 2007


"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



More information about the R-devel mailing list