[R] Function dependency function

Gabor Grothendieck ggrothendieck at gmail.com
Fri Mar 31 16:02:11 CEST 2006


This might help:

http://tolstoy.newcastle.edu.au/R/help/05/04/2263.html

On 3/31/06, Matthew Dowle <mdowle at concordiafunds.com> wrote:
>
> Hi,
>
> Is there a function taking a function as an argument, which returns all the
> functions it calls, and all the the functions those functions call, and so
> on?    I could use Rprof, but that would involve executing the function,
> which may miss some branches of code.   I'd really like a function which
> looks at the source code to work out all the functions that could possibly
> be called.   When I develop a function and release to production environment
> (or to some library) then I may need to release other functions I've
> developed which that function calls.  As soon as the function call stack
> goes outside .GlobalEnv (for example into base) then the search can stop as
> I'm only interested in functions in .GlobalEnv  (my own functions).  Also
> useful would be the reverse function  i.e.  find all functions which could
> possibly call the function.  This could be used to find functions which are
> never called and could be considered for deletion.
>
> Thanks,
> Matthew
>
>
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help at stat.math.ethz.ch mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html
>




More information about the R-help mailing list