View source: R/R6ClassHierarchy.R
getR6ClassInherits | R Documentation |
This function analyzes the R6 class definitions in a package and computes the relationships between them in terms of which classes inherit/extend other classes. This creates a class hierarchy which we can then query and visualize.
getR6ClassInherits(pkg, ns = getNamespace(pkg))
pkg |
the name of an R package (without the |
ns |
the namespace for the package |
A 2-column data.frame
providing the to-from edges for the graph
that identifies which class directly inherits from which other class.
Duncan Temple Lang
mkClassGraph
g = getR6ClassInherits("rstatic")
if(require(igraph))
plot(graph_from_data_frame(g), cex.arrow.size = .3)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.