vadr (version 0.01)

expand_macros: Expand any macros in the quoted expression.

Description

This searches for macro functions referred to in the quoted expression and substitutes their equivalent expansions. Not guaranteed to give exact results.

Usage

expand_macros(expr, macros = NULL, where = arg_env(expr, environment()), recursive = FALSE)

Arguments

expr
An expression. For expand_macros_q, this argument is quoted. For expand_macros, itis a language object.
macros
a named list of macros. By default searches for all macros.
where
The environment in which to look for macro definitions. Default is the lexical environment of expr.
recursive
Whether the results of expanding macros should themselves be expanded.

Value

The expansion of the given expression.