> You can use > > if(require(myPackage)) { ... } Yes, but the problem with this is that I now have the fact that this function requires that package stated in two places - in the body of the function, and in the examples - adding redundancy which makes maintenance harder.
I guess what I really want, is some way to throw an error that R CMD check won't complain about - ie. a special dependency not met error. Hadley ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel