Generating a Call Graph in R -


i've been given big chunk of poorly formatted monolithic r code plenty of functions, , i'd work out functions call functions.

i thought use roxygen's @callgraph stuff, a) code needs in package, headache code, , b) doesn't seem work when run on simple package of mine. see posting 1 of roxygen authors saying call graph generation disabled because of rgraphviz dependency, code there. anyway.

anyone got better way of working out foo calls bar, baz, , qux, , qux calls quux?

edit: solutions based on r's profiling system great, assuming can run code... half stuff in files doesn't run, , don't know does... static analysis hope for, guess.

edit 2: roxygen's call graph stuff seems static analysis, based on recursive descent of expression of function , checking is.callable. lovely able run on function... may play tomorrow...

you might @ 'foodweb' function 'mvbutils' package on cran. here link article describing usage:

http://www.r-bloggers.com/r-function-of-the-day-foodweb-2/

disclaimer: website , wrote article.


Comments

Popular posts from this blog

java - SNMP4J General Variable Binding Error -

windows - Python Service Installation - "Could not find PythonClass entry" -

Determine if a XmlNode is empty or null in C#? -