R/utils-tidy-eval.R

#' Tidy eval helpers
#'
#' @description
#'
#' * [rlang::sym()] creates a symbol from a string and
#'   [rlang::syms()] creates a list of symbols from a
#'   character vector.
#'
#' * [rlang::expr()] and [rlang::quo()] quote
#'   one expression. `quo()` wraps the quoted expression in a quosure.
#'
#'   The plural variants [rlang::exprs()] and
#'   [rlang::quos()] return a list of quoted expressions or
#'   quosures.
#'
#' * [rlang::enexpr()] and [rlang::enquo()]
#'   capture the expression supplied as argument by the user of the
#'   current function (`enquo()` wraps this expression in a quosure).
#'
#'   [rlang::enexprs()] and [rlang::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](https://adv-r.hadley.nz/metaprogramming.html) of [Advanced
#' R](https://adv-r.hadley.nz).
#'
#' @name     tidyeval
#' @keywords internal
#' @importFrom rlang quo quos enquo enquos quo_name sym ensym syms
#'                   ensyms expr exprs enexpr enexprs .data :=
#' @aliases  quo quos enquo enquos quo_name
#'           sym ensym syms ensyms
#'           expr exprs enexpr enexprs
#'           :=
NULL
cedricbatailler/JSmediation documentation built on March 4, 2024, 12:52 p.m.