thmsfuller066 at gmail.com
2011-Apr-13 15:57 UTC
[R] How to get the names of all the packages that depend on a give package?
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!> library(glmnet)Loading required package: Matrix Loading required package: lattice -- Tom
Dennis Murphy
2011-Apr-13 16:58 UTC
[R] How to get the names of all the packages that depend on a give package?
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 On Wed, Apr 13, 2011 at 8:57 AM, thmsfuller066@gmail.com < thmsfuller066@gmail.com> wrote:> 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! > > > library(glmnet) > Loading required package: Matrix > Loading required package: lattice > > -- > Tom > > ______________________________________________ > R-help@r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-help > PLEASE do read the posting guide > http://www.R-project.org/posting-guide.html > and provide commented, minimal, self-contained, reproducible code. >[[alternative HTML version deleted]]
Gabor Grothendieck
2011-Apr-13 17:15 UTC
[R] How to get the names of all the packages that depend on a give package?
On Wed, Apr 13, 2011 at 11:57 AM, thmsfuller066 at gmail.com <thmsfuller066 at gmail.com> wrote:> 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! > >> library(glmnet) > Loading required package: Matrix > Loading required package: lattice >Look at the bottom of this page: http://cran.r-project.org/web/packages/Matrix/index.html -- Statistics & Software Consulting GKX Group, GKX Associates Inc. tel: 1-877-GKX-GROUP email: ggrothendieck at gmail.com