to_blocks | R Documentation |
This function converts an ASTNode object or a quoted R expression into a list of basic blocks. When the root of the AST is a Function object, the CFG is built for its body.
to_blocks(node, in_place = FALSE, ssa = TRUE, insert_return = TRUE)
node |
A quoted R expression or an abstract syntax tree. |
in_place |
(logical) Operate on the node in place? If |
ssa |
(logical) Also convert to static single assignment form? |
insert_return |
(logical) Apply |
Each basic block contains a sequence of non-branching program instructions. Each basic block ends with an instruction that branches to one or more other basic blocks.
A Function node with the control flow graph in its $cfg
field.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.