View source: R/extract_from_parse_tree.R
extract_from_parse_tree | R Documentation |
The idea of this function is to collect objects of interest from the parse
tree, e.g. the names of functions that are called by a script. Therefore,
set the function matches
so that it returns TRUE
for the nodes
in the tree that are of interest.
extract_from_parse_tree(
x,
matches = matches_function,
dbg = FALSE,
path = integer(),
parent = NULL,
index = -1
)
x |
parse tree as returned by |
matches |
function that is called for each node of the tree. Give a
function here that returns |
dbg |
if |
path |
for internal use |
parent |
for internal use |
index |
for internal use |
vector of character or NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.