Displaying 1 result from an estimated 1 matches for "ddtri".
Did you mean:
ddri
2011 Aug 24
1
silently testing for data from another package for .Rd examples
In an .Rd example for a package, I want to use data from another
package, but avoid loading the entire
package and avoid errors/warnings if that other package is not available.
If I don't care about loading the other package, I can just do:
if (require("ElemStatLearn", quietly=TRUE)) {
data(prostate)
# rest of example
}
I'd rather just be able to do something like: