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

From: <Mark.Bravington_at_csiro.au>
Date: Fri, 30 Sep 2011 10:07:39 +1000

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.of( 'find.debug.HQ', ff)

 [1] ".end.incarnation"          ".onLoad"                   "bp"                        "check.legality"           
 [5] "debug.eval.guts"           "debug.q"                   "debug.Recall"              "debug.with"               
 [9] "debug.within"              "dismiss.debug.window"      "enact.command.r"           "eval.catching.errors"     
[13] "evaluator"                 "find.active.control.frame" "get.mtraced.callers"       "launch.debug.windows"     
[17] "qqq"                       "set.global.debug.vars"     "stepping"                  "try2"                     

HTH
Mark

-- 
Mark Bravington
CSIRO Mathematical & Information Sciences
Marine Laboratory
Castray Esplanade
Hobart 7001
TAS

ph (+61) 3 6232 5118
fax (+61) 3 6232 5012
mob (+61) 438 315 623

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 helped :-(
>
> Can anyone point me in the right direction?
>
> Thanks in advance,
>
> Keith Jewell
>
> ______________________________________________
> R-devel_at_r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-devel
______________________________________________ R-devel_at_r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-devel
Received on Fri 30 Sep 2011 - 00:19:23 GMT

This quarter's messages: by month, or sorted: [ by date ] [ by thread ] [ by subject ] [ by author ]

All messages

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 Fri 30 Sep 2011 - 13:40:36 GMT.

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

list of date sections of archive