tidyverse / magrittr

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

Things like `%<T>%` possible? #176

Closed MajoroMask closed 6 years ago

MajoroMask commented 6 years ago

Is there any change that we can get a pipe operator which combines the function of %<>% and %T>%? We can use it like this:

output_dir %<T>% dir.create() %>% normalizePath()

which is the same as:

output_dir <- output_dir %T>% dir.create() %>% normalizePath()

See? Could be a little easier. Just a thought, may not be mature.:sparkles: Thanks for watching.

hadley commented 6 years ago

The trajectory for magrittr is trying to get simpler over time, not more complicated. I don't think we want to have a pipe for every combination of other pipes.