R/show_fullyMergedCodeTrees.R
show_fullyMergedCodeTrees.Rd
Show the fully merged code tree(s)
show_fullyMergedCodeTrees(x)
A parsed source(s) object.
The result of a call to DiagrammeR::render_graph()
.
### Get path to example source
examplePath <-
system.file("extdata", package="rock");
### Get a path to one example file
exampleFile <-
file.path(examplePath, "example-1.rock");
### Load example source
loadedExample <- rock::parse_source(exampleFile);
#> Warning: For graphs, attribute fontcolor had multiple values specified: 'Firebrick' & 'Black'; taking the first one.
#> Warning: For nodes of types matching regular expression 'grandchildCode2', duplicate attributes were found
### Show merged code tree
show_fullyMergedCodeTrees(loadedExample);