expand_macros: Expand any macros in the quoted expression.

Description Usage Arguments Value Author(s)

Description

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

Usage

1
2
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.

Author(s)

Peter Meilstrup

This is intended for interactive/debugging use; in general, its results are not correct. For example, expressions appearing inside of link{quote}() will get expanded anyway.


crowding/vadr documentation built on May 14, 2019, 11:33 a.m.