Following helpful correspondence with Mark Bravington, mvbutils::foodweb and
callers.of can do exactly what I wanted very neatly and easily.
The trick is to use base::asNamespace to see non-exported objects in the
package. base::asNamespace is described as "Internal name space support
functions
Thanks for the suggestions. Just to wrap up this thread...
Rainer Krug pointed out that Roxygen did have dependency graphs, although
Roxygen2 doesn't. But I guess (probably wrongly!) that I'd need to
process/modify the .R files to use that, and I'm not the package author.
Duncan Murdoch pointed
Hi Keith
'foodweb' and friends in the 'mvbutils' package should do what you're after.
For example, I just tried this on the 'debug' package:
> ff <- foodweb( where=asNamespace( 'debug'))
> # Now either just eyeball the dependency graph that 'foodweb' produces, or
> more formally:
> callers.o
On 11-09-29 7:11 AM, Keith Jewell wrote:
Hi,
I'd like to know which functions in a package call one specific function.
I think I've seen a tool for identifying such dependencies, but now I can't
find it :-(
Searches of help and R site search for keywords like function, call, tree,
depend haven't
On Thu, Sep 29, 2011 at 1:11 PM, Keith Jewell wrote:
> Hi,
>
> I'd like to know which functions in a package call one specific function.
> I think I've seen a tool for identifying such dependencies, but now I can't
> find it :-(
>
Roxygen had the functionality to draw dependency graphs - but I th
Hi,
I'd like to know which functions in a package call one specific function.
I think I've seen a tool for identifying such dependencies, but now I can't
find it :-(
Searches of help and R site search for keywords like function, call, tree,
depend haven't helped :-(
Can anyone point me in the r