names_defined | R Documentation |
This function returns a character vector of the symbols defined by an expression.
names_defined(x, ...)
x |
A language object, |
... |
Further arguments to methods. |
If you need both the symbols defined and the symbols used by an expression,
it is more efficient to first call get_symbols()
on the expression and
then call names_defined()
and names_used()
on the result.
A character vector.
names_used()
, get_symbols()
, CodeDepends::getInputs()
expr = quote(x = x + y)
names_defined(expr)
# If defined symbols and used symbols are both needed:
symbols = get_symbols(expr)
names_defined(symbols)
names_used(symbols)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.