This function substitutes the names on both left- and right-hand sides in a quoted expression. In addition it can also do other standard substitutions on the right-hand side.
substitute_names(expr, names, others = list())h_subst_lhs_names(qexpr, names)
substitute_lhs_names(qexpr, names)
substitute_rhs(qexpr, env)
The modified expression.
(language
)
an expression.
(named list
of name
)
requested name substitutions.
(named list
)
requested other substitutions which will only happen on the
right-hand side.
(language
)
a quoted expression.
(environment
or list
)
requested variable substitutions.
h_subst_lhs_names()
: Helper function to just substitute the top-level names on the left-hand side in a
quoted expression.
substitute_lhs_names()
: recursively substitutes all names on the left-hand sides in a quoted expression.
substitute_rhs()
: substitutes on the right-hand side in a quoted expression.
Note that this is just a synonym for substitute_q()
.
substitute_q()