Skip to content

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

4 messages · thmsfuller066 at gmail.com, Dennis Murphy, Gabor Grothendieck +1 more

#
Dear All,

I want to check what packages depends on a given package. For example,
glmnet depends on Matrix. I want get the names of all the packages
that depend on Matrix on CRAN. Is there a way to do so? Thanks!
Loading required package: Matrix
Loading required package: lattice
#
On Wed, Apr 13, 2011 at 11:57 AM, thmsfuller066 at gmail.com
<thmsfuller066 at gmail.com> wrote:
Look at the bottom of this page:
http://cran.r-project.org/web/packages/Matrix/index.html
#
Dennis Murphy <djmuser <at> gmail.com> writes:
Or, if it's not installed locally, use

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

instead.