Skip to content

Commit 661c8bd

Browse files
committed
mention .() more places
rebuild and recheck
1 parent 490449f commit 661c8bd

29 files changed

+100
-45
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ Package: wrapr
22
Type: Package
33
Title: Wrap R Tools for Debugging and Parametric Programming
44
Version: 1.9.1
5-
Date: 2019-10-04
5+
Date: 2019-10-05
66
Authors@R: c(
77
person("John", "Mount", email = "[email protected]", role = c("aut", "cre")),
88
person("Nina", "Zumel", email = "[email protected]", role = c("aut")),

NEWS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
# wrapr 1.9.1 2019-10-04
2+
# wrapr 1.9.1 2019-10-05
33

44
* Fix locum composite line printing.
55
* Document .()-escaping in pipe.

R/bpipe.R

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -505,6 +505,12 @@ pipe_impl <- function(pipe_left_arg,
505505
#' cos(exp(sin(4)))
506506
#' 4 %.>% sin(.) %.>% exp(.) %.>% cos(.)
507507
#'
508+
#' f <- function() { sin }
509+
#' # returns f() ignoring dot, not what we want
510+
#' 5 %.>% f()
511+
#' # evaluates f() early then evaluates result with .-substitution rules
512+
#' 5 %.>% .(f())
513+
#'
508514
#' @name dot_arrow
509515
NULL
510516

README.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -239,6 +239,16 @@ Checks and transforms are not performed on items inside braces (example:
239239

240240
</li>
241241

242+
<li>
243+
244+
The dot arrow pipe has S3/S4 dispatch (please see ). However as the
245+
right-hand side of the pipe is normally held unevaluated, we don’t know
246+
the type except in special cases (such as the rigth-hand side being
247+
referred to by a name or variable). To force the evaluation of a pipe
248+
term, simply wrap it in `.()`.
249+
250+
</li>
251+
242252
</ul>
243253

244254
The dot pipe is also user configurable through standard `S3`/`S4`

docs/articles/CornerCases.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/DebugFnW.html

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

docs/articles/FrameTools.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Function_Objects.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/Named_Arguments.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/QuotingConcatinate.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)