|
DATA MINING
Desktop Survival Guide by Graham Williams |
|
|||
If the function depends on the functionality of some package, such as
gplots, for example, use the stopifnot
function to exit if the package is not available:
myfun <- function()
{
stopifnot(require(gplots))
[...]
}
|
Brought to you by Togaware.