tidyeval {JSmediation} | R Documentation |
Tidy eval helpers
Description
-
rlang::sym()
creates a symbol from a string andrlang::syms()
creates a list of symbols from a character vector. -
rlang::expr()
andrlang::quo()
quote one expression.quo()
wraps the quoted expression in a quosure.The plural variants
rlang::exprs()
andrlang::quos()
return a list of quoted expressions or quosures. -
rlang::enexpr()
andrlang::enquo()
capture the expression supplied as argument by the user of the current function (enquo()
wraps this expression in a quosure).rlang::enexprs()
andrlang::enquos()
capture multiple expressions supplied as arguments, including...
.
exprs()
is not exported to avoid conflicts with Biobase::exprs()
,
therefore one should always use rlang::exprs()
.
To learn more about tidy eval and how to use these tools, visit https://rlang.r-lib.org/ and the Metaprogramming section of Advanced R.