renkun-ken / pipeR

Multi-Paradigm Pipeline Implementation
Other
167 stars 39 forks source link

debug(%>>%) for a pipe #74

Open taranraj123 opened 6 years ago

taranraj123 commented 6 years ago

One of the primary issues with programming with pipes is that debugging on the fly gets a lot nastier when working with long(ish) pipe chains. For instance I find that the only way to debug an error in a long chain of pipes is to do the following,

data %>>% ... %>>% (~browser()) %>>% ...

But that involves modifying the code as opposed to just running a debug command.

Could a feature similar to the debug function be implemented that serves the same purpose for the pipe operator?