tidyverse / magrittr

Improve the readability of R code with the pipe
https://magrittr.tidyverse.org
Other
957 stars 157 forks source link

Pipe notation and double colon notation #183

Closed ghost closed 5 years ago

ghost commented 5 years ago

@ipofanes commented on Nov 8, 2018, 9:22 AM UTC:


There seems to be a clash between the pipe notation as implemented in dplyr and the double colon notation. I didn't find anything about it in the documentation.

This works:

base::mean(1:10)

This doesn't:

1:10 %>% base::mean

It works after parenthesizing though:

1:10 %>% (base::mean)

It could be made a bit more prominent in the docs.

This issue was moved by romainfrancois from tidyverse/dplyr#3958.

ghost commented 5 years ago

@romainfrancois commented on Nov 8, 2018, 11:57 AM UTC:

The pipe comes from the magrittr 📦