children | R Documentation |
This function extracts or replaces all children of the given node.
children(node)
children(node) <- value
node |
(ASTNode) The node from which to extract or replace the children. |
value |
(list) A named list of objects to replace the children with.
Names should match field names of |
A list of the child nodes.
child
to extract or replace a single, specific descendant
slightly more efficiently.
code = quote_ast(x <- 3)
children(code)
children(code) = list(read = Integer$new(42), write = Symbol$new("y"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.