Re: [R] Finding Imported Packages

From: Uwe Ligges <ligges_at_statistik.tu-dortmund.de>
Date: Sun, 20 Mar 2011 18:08:12 +0100

On 20.03.2011 17:38, Derek Ogle wrote:
> Is there a function similar to pkgDepends() that returns the packages that a particular package imports or imports from? I believe I can get this information from the matrix returned from installed.packages() but something like pkgDepends() would be more convenient.
>
> I did not find anything useful in my search of the R-help archives (my search string may have been poorly chosen), my use of ??import, or my (hoped for) use of ?pkgImports.
>
> Thank you in advance for any help you can offer.

You are probably looking for tools:::.package_dependencies() which can show particular kinds of dependencies, reverse dependencies and recursive versions of both.

> p.s., For what it is worth I am using Windows and R version 12.2-1.

Congratulations, you are decades or perhaps centuries in the future. Hence I cannot guarantee the above mentioned function still exists. Actually, I guess you are on R-2.12.1 or R-2.12.2 ...

Uwe Ligges

> [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help_at_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.



R-help_at_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. Received on Sun 20 Mar 2011 - 17:10:31 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Sun 20 Mar 2011 - 17:20:24 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive