Henrik Bengtsson
2014-Nov-15 02:57 UTC
[Rd] Code tools for identifying which package A functions package B use?
Hi, I'd like to list all package PkgA functions that another package PkgB use via Depends or Imports (ignoring Suggests for simplicity). As long as PkgB uses importFrom("PkgA", ...) it's just a matter of parsing the NAMESPACE file or inspecting asNamespace("PkgB")$.__NAMESPACE__.$imports. However, what can be done in case PkgB uses import("PkgA")? Is there a function/package already available for this? Thanks, Henrik
Kasper Daniel Hansen
2014-Nov-15 04:41 UTC
[Rd] Code tools for identifying which package A functions package B use?
The best thing I have found is codetoolsBioC in the Bioconductor subversion repository. Best, Kasper On Fri, Nov 14, 2014 at 9:57 PM, Henrik Bengtsson <hb at biostat.ucsf.edu> wrote:> Hi, > > I'd like to list all package PkgA functions that another package PkgB > use via Depends or Imports (ignoring Suggests for simplicity). As > long as PkgB uses importFrom("PkgA", ...) it's just a matter of > parsing the NAMESPACE file or inspecting > asNamespace("PkgB")$.__NAMESPACE__.$imports. However, what can be > done in case PkgB uses import("PkgA")? Is there a function/package > already available for this? > > Thanks, > > Henrik > > ______________________________________________ > R-devel at r-project.org mailing list > https://stat.ethz.ch/mailman/listinfo/r-devel >[[alternative HTML version deleted]]
Seemingly Similar Threads
- S4 Generics and NAMESPACE : justified warning ?
- "False" warning on "replacing previous import" when re-exporting identical object
- S4 NAMESPACE method imports and exports do not include (promoted?) generics
- improved error message when existing implicit S4 generic is not imported?
- namespace S3 and S4 generic imports cannot both be satisfied: