19.3 Quoting
Capture expressions without evaluating them
Developer | User | |
---|---|---|
Expression (Quasiquotation) | ||
Symbol (Quasiquotation) | ||
R Base (Quotation) | ||
- Non-base functions are from rlang
- Developer - From you, direct, fixed, interactive
- User - From the user, indirect, varying, programmatic
Also:
bquote()
provides a limited form of quasiquotation~
, the formula, is a quoting function (see Section 20.3.4)
enexpr()
2 and enexprs()
ensym()
and ensyms()
- Remember: Symbol represents the name of an object. Can only be length 1.
- These are stricter than
enexpr/s()
enexpr()
= enrichexpr()
↩︎