From Mark.Bravington at csiro.au  Fri Sep 30 02:07:39 2011
From: Mark.Bravington at csiro.au (Mark.Bravington at csiro.au)
Date: Fri, 30 Sep 2011 10:07:39 +1000
Subject: [Rd] Finding inter-function dependencies within a package
In-Reply-To: <j61jp4$esl$1@dough.gmane.org>
References: <j61jp4$esl$1@dough.gmane.org>
Message-ID: <3D59DF35E7CF3E42BA70C23BD5CBE6A85F5BD9F884@exvic-mbx04.nexus.csiro.au>

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


[Rd] Finding inter-function dependencies within a package
Mark.Bravington at csiro.au