[Rd] require is to suggests as what is to imports?

Hadley Wickham hadley at rice.edu
Wed Aug 25 14:34:03 CEST 2010


On Tue, Aug 24, 2010 at 6:55 PM, Henrik Bengtsson <hb at 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/



More information about the R-devel mailing list