Description Usage Arguments Value Examples
Produce an ast or parse graph of an expression
1 | create_parse_graph(expr, type = c("parse", "ast")[1])
|
expr |
An expression (e.g. created by parse(text = "1 + 1")) |
type |
Generate a full parse graph or ast |
An igraph graph object
1 2 | create_parse_graph(parse(text = "if (x) 2 else a$b"))
create_parse_graph(expression(if (x) 2 else a$b), type = "ast")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.