Skip to content
Prev 57571 / 63421 Next

should base R have a piping operator ?

In order to place a breakpoint on line 3, I think you'll need to wrap
`c()` in curly braces and insert a `browser()` call. And at that point
you're changing the semantics of `c()` and you'll need to manually
write the placeholder for the input:

a() |>
  b() |>
  { browser(); c(.) } |>
  d()

I don't see any way around this. I guess it could be done behind the 
scenes by the IDE when a breakpoint is set though. Note that this
doesn't require any changes to the parser and already works with the
magrittr pipe.

Then there's the issue of continuing to step-debug through the
pipeline. This could be achieved by parsing `a |> b()` as `{a} |>
{b()}`. so that each sub-expression carries source references. In
general, there are metaprogramming patterns that would be made easier
if calls to `function` or `if` always had a body wrapped in `{`. It is
too late to change historical operators but maybe it makes sense for
newer ones?

Lionel

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