From 95fd3af93d382fdd59198369d3ad80f1c442bae1 Mon Sep 17 00:00:00 2001 From: nteetor Date: Fri, 25 Aug 2017 10:27:33 -0400 Subject: [PATCH] small changes before CRAN submission --- tests/testthat/test-pipe.R | 2 +- vignettes/unpacking-assignment.Rmd | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/testthat/test-pipe.R b/tests/testthat/test-pipe.R index 0203c49..5c085db 100644 --- a/tests/testthat/test-pipe.R +++ b/tests/testthat/test-pipe.R @@ -1,7 +1,7 @@ context(' * testing %>% expressions') test_that('%<-% and %>% caveat', { - skip('must wrap piped expressions in parentheses') + skip('must wrap piped expressions in parentheses or use right operator') }) test_that('%<-% assign magrittr chain vector', { diff --git a/vignettes/unpacking-assignment.Rmd b/vignettes/unpacking-assignment.Rmd index d4d603f..d39815c 100644 --- a/vignettes/unpacking-assignment.Rmd +++ b/vignettes/unpacking-assignment.Rmd @@ -342,7 +342,7 @@ y ``` However, if we tried to get 3 elements and assign them an error would be raised -because `tail(nums, 3)` still only returns 2 values. +because `tail(nums, 3)` still returns only 2 values. ```{r, error = TRUE} c(x, y, z) %<-% tail(nums, 3) @@ -385,7 +385,7 @@ fish ## Right operator The `magrittr` package provides a pipe operator `%>%` which allows functions -to be chained together in succession instead of nested. The left operator `%<-%` +to be called in succession instead of nested. The left operator `%<-%` does not work well with these function chains. Instead, the right operator `%->%` is recommended. The below example is adapted from the `magrittr` readme.