Re: [Rd] Finding inter-function dependencies within a package

2011-10-04 Thread Keith Jewell
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

Re: [Rd] Finding inter-function dependencies within a package

2011-09-30 Thread Keith Jewell
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

Re: [Rd] Finding inter-function dependencies within a package

2011-09-29 Thread Mark.Bravington
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

Re: [Rd] Finding inter-function dependencies within a package

2011-09-29 Thread Duncan Murdoch
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

Re: [Rd] Finding inter-function dependencies within a package

2011-09-29 Thread Rainer M Krug
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