Togaware DATA MINING
Desktop Survival Guide
by Graham Williams
Google

Testing Package Availability

If a function you write depends on the functionality of some package, such as gplots, use the stopifnot function to exit if the package is not available:

myfun <- function()
{
  stopifnot(require(gplots))
  [...]
}



Copyright © 2004-2006 [email protected]
Support further development through the purchase of the PDF version of the book.
Brought to you by Togaware.