Skip to content

Commit 6647b31

Browse files
committed
Reexport tidy eval tools
1 parent 2f31205 commit 6647b31

File tree

4 files changed

+108
-0
lines changed

4 files changed

+108
-0
lines changed

DESCRIPTION

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -232,6 +232,7 @@ Collate:
232232
'utilities-matrix.r'
233233
'utilities-resolution.r'
234234
'utilities-table.r'
235+
'utilities-tidy-eval.R'
235236
'zxx.r'
236237
'zzz.r'
237238
VignetteBuilder: knitr

NAMESPACE

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,7 @@ S3method(widthDetails,titleGrob)
114114
S3method(widthDetails,zeroGrob)
115115
export("%+%")
116116
export("%+replace%")
117+
export(.data)
117118
export(.pt)
118119
export(.stroke)
119120
export(AxisSecondary)
@@ -275,8 +276,16 @@ export(element_grob)
275276
export(element_line)
276277
export(element_rect)
277278
export(element_text)
279+
export(enexpr)
280+
export(enexprs)
281+
export(enquo)
282+
export(enquos)
283+
export(ensym)
284+
export(ensyms)
278285
export(expand_limits)
279286
export(expand_scale)
287+
export(expr)
288+
export(exprs)
280289
export(facet_grid)
281290
export(facet_null)
282291
export(facet_wrap)
@@ -383,6 +392,9 @@ export(position_nudge)
383392
export(position_stack)
384393
export(qplot)
385394
export(quickplot)
395+
export(quo)
396+
export(quo_name)
397+
export(quos)
386398
export(rel)
387399
export(remove_missing)
388400
export(render_axes)
@@ -514,6 +526,8 @@ export(stat_ydensity)
514526
export(summarise_coord)
515527
export(summarise_layers)
516528
export(summarise_layout)
529+
export(sym)
530+
export(syms)
517531
export(theme)
518532
export(theme_bw)
519533
export(theme_classic)
@@ -547,6 +561,20 @@ import(scales)
547561
importFrom(lazyeval,f_eval)
548562
importFrom(plyr,as.quoted)
549563
importFrom(plyr,defaults)
564+
importFrom(rlang,.data)
565+
importFrom(rlang,enexpr)
566+
importFrom(rlang,enexprs)
567+
importFrom(rlang,enquo)
568+
importFrom(rlang,enquos)
569+
importFrom(rlang,ensym)
570+
importFrom(rlang,ensyms)
571+
importFrom(rlang,expr)
572+
importFrom(rlang,exprs)
573+
importFrom(rlang,quo)
574+
importFrom(rlang,quo_name)
575+
importFrom(rlang,quos)
576+
importFrom(rlang,sym)
577+
importFrom(rlang,syms)
550578
importFrom(stats,setNames)
551579
importFrom(tibble,tibble)
552580
importFrom(utils,.DollarNames)

R/utilities-tidy-eval.R

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
#' Tidy eval helpers
2+
#'
3+
#' @description
4+
#'
5+
#' * \code{\link[rlang]{sym}()} creates a symbol from a string and
6+
#' \code{\link[rlang]{syms}()} creates a list of symbols from a
7+
#' character vector.
8+
#'
9+
#' * \code{\link[rlang]{expr}()} and \code{\link[rlang]{quo}()} quote
10+
#' one expression. `quo()` wraps the quoted expression in a quosure.
11+
#'
12+
#' The plural variants \code{\link[rlang]{exprs}()} and
13+
#' \code{\link[rlang]{quos}()} return a list of quoted expressions or
14+
#' quosures.
15+
#'
16+
#' * \code{\link[rlang]{enexpr}()} and \code{\link[rlang]{enquo}()}
17+
#' capture the expression supplied as argument by the user of the
18+
#' current function (`enquo()` wraps this expression in a quosure).
19+
#'
20+
#' \code{\link[rlang]{enexprs}()} and \code{\link[rlang]{enquos}()}
21+
#' capture multiple expressions supplied as arguments, including
22+
#' `...`.
23+
#'
24+
#' @md
25+
#' @name tidyeval
26+
#' @keywords internal
27+
#' @aliases quo quos enquo enquos quo_name
28+
#' sym ensym syms ensyms
29+
#' expr exprs enexpr enexprs
30+
#' .data
31+
#' @export quo quos enquo enquos quo_name
32+
#' @export sym ensym syms ensyms
33+
#' @export expr exprs enexpr enexprs
34+
#' @export .data
35+
NULL
36+
37+
#' @importFrom rlang quo quos enquo enquos quo_name sym ensym syms
38+
#' ensyms expr exprs enexpr enexprs .data
39+
NULL

man/tidyeval.Rd

Lines changed: 40 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)