On Tue, Aug 24, 2010 at 6:55 PM, Henrik Bengtsson <h...@stat.berkeley.edu> wrote: > isPackageInstalled <- function(package, ...) { > path <- system.file(package=package); > (path != ""); > } > > taken from R.utils (which also has a isPackageLoaded()).
Nice quick hack (subject to caveats Brian mentions). Thanks! Hadley -- Assistant Professor / Dobelman Family Junior Chair Department of Statistics / Rice University http://had.co.nz/ ______________________________________________ R-devel@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel