Are there any tools that can visualize R code?
I have some very complex R code split between several scripts that I need to understand. Part of the difficulty of this is that there are so many nested functions and variables that it's proving extremely slow going to go through it manually and figure out what connects to what.
I think my task might be easier if there were some way to generate a flow chart from R code, so that I can see it all at once. Of course, I can just draw out a map as I go through the code, but shouldn't it be programatically possible to do this? Are there any existing tools that can do it?
I have found a program called R AnalyticFlow, but it seems to MAKE scripts using a GUI, whereas I want something that can take code and make it into the type of thing that one would draw in AnalyticFlow.
snakefood
that implements this for Python: furius.ca/snakefood . The graphing you can do (manually) in GraphViz Dot. The answers here might be helpful: #44143610 – LaughingstockCodeDepends
, read this vignette and scroll until you see charts : cran.r-project.org/web/packages/CodeDepends/vignettes/… – Johannejohannesdrake
package sounds like it might be relevant for you. It helps generate dependency graphs between your scripts to see what is out of dat.e github.com/ropensci/drake – Blakeley