make.callgraph.roclet: Make a callgraph roclet which produces a static call graph...

Description Usage Arguments Details TODO


Make a callgraph roclet which produces a static call graph from a given function at a given depth with or without primitives.


make.callgraph.roclet(dependencies, dir=".", verbose=TRUE)



packages required to evaluate interesting functions


the directory to place the callgraphs in


anounce what we're doing


The callgraph roclet supports the following tags:

  1. @callGraphCreate a call graph of the default depth, excluding primitive functions.

  2. @callGraphPrimitivesCreate a call graph of the default depth, including primitive functions.

  3. @callGraphDepthChange the depth of the callgraph from the default of 2.

The callgraph roclet is awkward in the sense that it requires a function's package to be loadable; which means, like calling LaTeX multiple times, one has to run roxygen on a package, install it, run roxygen again to get the callgraphs, and possibly install the package again.


  • index.html‘index.html’ in ‘inst/doc’ for callgraphs, possibly with thumbnails in png

  • Text-only optionOption for text-only callgraphs (which are clearer, in my opinion)

Search within the roxygen package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.