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

2011-04-13 Thread thmsfuller...@gmail.com
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

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

2011-04-13 Thread Dennis Murphy
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, thmsfuller...@gmail.com

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

2011-04-13 Thread Gabor Grothendieck
On Wed, Apr 13, 2011 at 11:57 AM, thmsfuller...@gmail.com thmsfuller...@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?

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

2011-04-13 Thread Ben Bolker
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