get_symbols | R Documentation |
This function returns the set of symbols defined by an expression and the set of symbols used by an expression.
get_symbols(node, initial = SymbolSets(), ...)
node |
(ASTNode) The expression to analyze. |
initial |
(SymbolSets) The initial sets of defined/used expressions. |
... |
Further arguments to methods. |
recursive |
(logical) Search for symbols in function definitions? |
include_default_arguments |
(logical) Search for symbols in default arguments? |
only_undefined_uses |
(logical) Exclude used symbols that are defined
in |
A SymbolSets
object, with elements defined
and used
. Element
defined
is a list of expressions that define a symbol. Element used
is a
list of used symbols.
names_defined()
, names_used()
, CodeDepends::getInputs()
ast = quote_ast(x <- sum(x, 1, y))
get_symbols(ast)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.