Skip to content

Commit 490449f

Browse files
committed
add .() doc
rebuild recheck
1 parent df4d0dd commit 490449f

File tree

144 files changed

+2616
-1351
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+2616
-1351
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-09-29
5+
Date: 2019-10-04
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: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11

2-
# wrapr 1.9.1 2019-09-29
2+
# wrapr 1.9.1 2019-10-04
33

44
* Fix locum composite line printing.
5+
* Document .()-escaping in pipe.
56

67
# wrapr 1.9.0 2019-09-28
78

R/bpipe.R

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,11 @@ pipe_impl <- function(pipe_left_arg,
490490
#' For a base-R step-debuggable pipe please try the Bizarro Pipe \url{http://www.win-vector.com/blog/2017/01/using-the-bizarro-pipe-to-debug-magrittr-pipelines-in-r/}.
491491
#' \code{\%>.\%} and \code{\%.>\%} are synonyms.
492492
#'
493+
#' The dot arrow pipe has S3/S4 dispatch (please see \url{https://journal.r-project.org/archive/2018/RJ-2018-042/index.html}).
494+
#' However as the right-hand side of the pipe is normally held unevaluated, we don't know the type except in special
495+
#' cases (such as the rigth-hand side being referred to by a name or variable). To force the evaluation of a pipe term,
496+
#' simply wrap it in .().
497+
#'
493498
#' @param pipe_left_arg left argument expression (substituted into .)
494499
#' @param pipe_right_arg right argument expression (presumably including .)
495500
#' @return eval(\{ . <- pipe_left_arg; pipe_right_arg \};)

README.Rmd

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,10 @@ are treated performed (example: `5 %.>% base::sin(.)`).</li>
145145
<li>Outer parenthesis on the right-hand side are removed (example: `5 %.>% (sin(.))`).</li>
146146
<li>Anonymous function constructions are evaluated so the function can be applied (example: `5 %.>% function(x) {x+1}` returns 6, just as `5 %.>% (function(x) {x+1})(.)` does).</li>
147147
<li>Checks and transforms are not performed on items inside braces (example: `5 %.>% { function(x) {x+1} }` returns `function(x) {x+1}`, not 6).</li>
148+
<li>The dot arrow pipe has S3/S4 dispatch (please see \url{https://journal.r-project.org/archive/2018/RJ-2018-042/index.html}).
149+
However as the right-hand side of the pipe is normally held unevaluated, we don't know the type except in special
150+
cases (such as the rigth-hand side being referred to by a name or variable). To force the evaluation of a pipe term,
151+
simply wrap it in `.()`.</li>
148152
</ul>
149153

150154
The dot pipe is also user configurable through standard `S3`/`S4` methods.

cran-comments.md

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -6,35 +6,23 @@
66
### Windows
77

88
rhub::check_for_cran()
9-
507#> * using R Under development (unstable) (2019-09-18 r77193)
10-
508#> * using platform: x86_64-w64-mingw32 (64-bit)
11-
509#> * using session charset: ISO8859-1
12-
510#> * using option '--as-cran'
13-
511#> * checking for file 'wrapr/DESCRIPTION' ... OK
14-
512#> * checking extension type ... Package
15-
513#> * this is package 'wrapr' version '1.9.0'
16-
514#> * package encoding: UTF-8
17-
515#> * checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
18-
516#> Maintainer: 'John Mount '
19-
558#> * checking sizes of PDF files under 'inst/doc' ... NOTE
20-
559#> Unable to find GhostScript executable to run checks on size reduction
21-
574#> Status: 1 NOTE
229
Note: is property of the check installation, not the package.
2310

2411
### MacOS
2512

26-
R CMD check --as-cran wrapr_1.9.0.tar.gz
13+
R CMD check --as-cran wrapr_1.9.1.tar.gz
2714
* using R version 3.6.0 (2019-04-26)
2815
* using platform: x86_64-apple-darwin15.6.0 (64-bit)
2916
* using session charset: UTF-8
3017
* using option ‘--as-cran’
3118
* checking for file ‘wrapr/DESCRIPTION’ ... OK
3219
* checking extension type ... Package
33-
* this is package ‘wrapr’ version ‘1.9.0
20+
* this is package ‘wrapr’ version ‘1.9.1
3421
* package encoding: UTF-8
35-
* checking CRAN incoming feasibility ... Note_to_CRAN_maintainers
22+
* checking CRAN incoming feasibility ... NOTE
3623
Maintainer: ‘John Mount <[email protected]>’
37-
Status: OK
24+
Days since last update: 6
25+
Status: 1 NOTE
3826

3927
## Downstream dependencies
4028

docs/404.html

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

docs/LICENSE-text.html

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

0 commit comments

Comments
 (0)