Function calling tree
DESCRIPTION:
Recursively finds the names of all
functions called by a function, or vector of functions.
By default it restricts itself to
functions defined in the working directory.
USAGE:
calltree(fns, pos=1, local.only=T)
ARGUMENTS:
- fns
-
name of a function or vector of function names
- pos
-
position in the search list to consider as local functions.
- local.only
-
only show local functions in the calling tree
VALUE:
list whose names are the names of the calling functions, and whose
elements list the functions called.
AUTHOR(S):
David Lubinsky
david@hoqax.att.com
SEE ALSO:
getfuns
EXAMPLES:
## Not run:
calltree(myfun)
calltree(c("myfun1","myfun2"))
calltree(is.category,2) #dependencies of builtin function
sort(unique(unlist(calltree(is.category,2))))
# flat list of dependencies
## End(Not run)