[R] package dependency tree

Sebastian P. Luque spluque at gmail.com
Tue Jan 2 19:00:19 CET 2007


On Tue, 2 Jan 2007 11:20:10 -0600,
roger koenker <rkoenker at uiuc.edu> wrote:

> Is there a painless way to find the names of all packages on CRAN that
> "Depend" on a specified package?

Maybe this is not too painful:


pkgs <- available.packages()            # repos arg may be useful here
pkgs.dpnd <- pkgs[grep("quantreg", pkgs[, "Depends"]), ]
names(pkgs.dpnd)


-- 
Seb



More information about the R-help mailing list