Show the fully merged code tree(s)

show_fullyMergedCodeTrees(x)

Arguments

x

A parsed source(s) object.

Value

The result of a call to DiagrammeR::render_graph().

Examples

### 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);

### Show merged code tree
show_fullyMergedCodeTrees(loadedExample);
%0 1->2 1->12 1->19 2->3 2->6 2->10 2->11 3->4 3->5 6->7 6->8 6->9 12->13 12->17 13->14 13->15 13->16 17->18 1 codes 2 parentCode1 3 moreCodes 4 moreChildCodes1 5 moreChildCodes2 6 childCode1 7 grandchildCode1 8 grandchildCode2 9 grandchildCode3 10 childCode2 11 childCode3 12 parentCode2 13 childCode4 14 grandchildCode4 15 grandchildCode5 16 grandchildCode6 17 childCode5 18 grandchildCode7 19 someOtherCode