DATA MINING
Desktop Survival Guide by Graham Williams |
|||||
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)) [...] } |