Skip to content

Commit 95fd3af

Browse files
author
nteetor
committed
small changes before CRAN submission
1 parent ebca8bb commit 95fd3af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

tests/testthat/test-pipe.R

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
context(' * testing %>% expressions')
22

33
test_that('%<-% and %>% caveat', {
4-
skip('must wrap piped expressions in parentheses')
4+
skip('must wrap piped expressions in parentheses or use right operator')
55
})
66

77
test_that('%<-% assign magrittr chain vector', {

vignettes/unpacking-assignment.Rmd

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ y
342342
```
343343

344344
However, if we tried to get 3 elements and assign them an error would be raised
345-
because `tail(nums, 3)` still only returns 2 values.
345+
because `tail(nums, 3)` still returns only 2 values.
346346

347347
```{r, error = TRUE}
348348
c(x, y, z) %<-% tail(nums, 3)
@@ -385,7 +385,7 @@ fish
385385

386386
## Right operator
387387
The `magrittr` package provides a pipe operator `%>%` which allows functions
388-
to be chained together in succession instead of nested. The left operator `%<-%`
388+
to be called in succession instead of nested. The left operator `%<-%`
389389
does not work well with these function chains. Instead, the right operator
390390
`%->%` is recommended. The below example is adapted from the `magrittr` readme.
391391

0 commit comments

Comments
 (0)