Skip to content
Prev 57578 / 63424 Next

[External] Re: should base R have a piping operator ?

IMHO, if base R were to include a pipe operator, I think it should be much
simpler than the magrittr pipe. It should satisfy the property that:

    x |> f(...)   is equivalent to   f(x, ...)

Except, perhaps, in terms of when the promise for 'x' gets forced. We
shouldn't need to mess with bindings in environments to make that work.

My understanding is that the '.' placeholder is used so that the magrittr
pipe can be adapted to functions that aren't endomorphic or otherwise
easily pipeable. I would argue that:

1. Users could just create their own pipable wrapper functions if so
required, or
2. Users could use magrittr to get some of the 'extensions' to the pipe
operator (with the noted caveats).

Best,
Kevin

Thread (33 messages)

Ant F should base R have a piping operator ? Oct 5 Jeff Ryan should base R have a piping operator ? Oct 5 John Mount should base R have a piping operator ? Oct 5 Hugh Marera should base R have a piping operator ? Oct 5 David Hugh-Jones should base R have a piping operator ? Oct 5 Ant F should base R have a piping operator ? Oct 5 John Mount should base R have a piping operator ? Oct 5 Rui Barradas should base R have a piping operator ? Oct 5 Iñaki Ucar should base R have a piping operator ? Oct 5 Iñaki Ucar should base R have a piping operator ? Oct 5 Ant F should base R have a piping operator ? Oct 5 Hugh Marera should base R have a piping operator ? Oct 5 Iñaki Ucar should base R have a piping operator ? Oct 5 Ant F should base R have a piping operator ? Oct 5 Gabriel Becker should base R have a piping operator ? Oct 5 Joris Meys should base R have a piping operator ? Oct 6 Iñaki Ucar should base R have a piping operator ? Oct 6 John Mount should base R have a piping operator ? Oct 6 Duncan Murdoch should base R have a piping operator ? Oct 6 Ant F should base R have a piping operator ? Oct 6 Lionel Henry should base R have a piping operator ? Oct 7 Duncan Murdoch should base R have a piping operator ? Oct 7 Lionel Henry should base R have a piping operator ? Oct 7 Duncan Murdoch should base R have a piping operator ? Oct 7 Lionel Henry should base R have a piping operator ? Oct 7 Luke Tierney should base R have a piping operator ? Oct 7 Lionel Henry should base R have a piping operator ? Oct 7 Luke Tierney should base R have a piping operator ? Oct 7 Kevin Ushey should base R have a piping operator ? Oct 7 Lionel Henry should base R have a piping operator ? Oct 7 Lionel Henry should base R have a piping operator ? Oct 7 Luke Tierney should base R have a piping operator ? Oct 7 Luke Tierney should base R have a piping operator ? Oct 7