[R] How to get the names of all the packages that depend on a give package?

Ben Bolker bbolker at gmail.com
Wed Apr 13 19:55:41 CEST 2011


Dennis Murphy <djmuser <at> gmail.com> writes:

> 
> Hi:
> 
> Here's one way, assuming Matrix (or whichever package you want to
> investigate) is installed on your system:
> 
> u <- installed.packages()
> u['Matrix', 'Depends']
> [1] "R (>= 2.10.0), stats, methods, utils, lattice"
> 
> HTH,
> Dennis
> 

  Or, if it's not installed locally, use

u <- available.packages()
u['Matrix', 'Depends']

instead.



More information about the R-help mailing list