[R] Automatic code diagramming for R?

Tobias Verbeke tobias.verbeke at gmail.com
Tue Oct 7 14:48:19 CEST 2008

Ben Bryant wrote:

> Greetings -
> Is anyone aware of an automatic code diagrammer/flow chart creator that
> works for the R language (either a contributed package, or external
> software)?  I need to explain some code structure of a package I'm working
> on to non-R users, and would find it extremely helpful to have such a
> program similar to, for example, Visustin (
> http://www.aivosto.com/visustin.html ).  I can do it "by hand" (possibly
> with the help of the 'diagram' package) but it seems like automated
> capabilities for recognizing nested structures and argument-passing would be
> of good general use to package developers.

When you document your package using Roxygen,
you can generate callgraphs (using the @callGraph
and/or @callGraphPrimitives tags).

The roxygen package homepage can be found at


and the vignette has an example of a call graph
(and how to generate it).


> Much appreciated,
> -Ben Bryant
> 	[[alternative HTML version deleted]]
> ______________________________________________
> R-help at r-project.org mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.

More information about the R-help mailing list