rstudio / promises

A promise library for R
https://rstudio.github.io/promises
Other
198 stars 19 forks source link

magrittr exposition promise-pipe-operator: %...$% #27

Open adelmofilho opened 6 years ago

adelmofilho commented 6 years ago

Promises is a great package!

Is there some plan to create an exposition promise-pipe-operator?

%$% is very useful to work on packages that are outside from the tidyverse.

jcheng5 commented 6 years ago

Wow, I had no idea %$% existed! %...$% would provide a more concise way to do gathering.

On the flip side, you can work around the lack of such an operator today by combining %...>% with with({ ... }): as far as I can tell, a %$% b is equivalent to a %>% with(b) (and the same for promises).