renkun-ken / pipeR

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

Pipe to NULL should return invisible NULL #49

Closed renkun-ken closed 10 years ago

renkun-ken commented 10 years ago
> 1:10 %>>% NULL
> 

This erases the results and prevents the result from printing.

renkun-ken commented 10 years ago
> 1:10 %>>% lapply(function(i) cat(i)) %>>% NULL
>

This directly prevents the lhs from evaluating. Revert the implementation.

renkun-ken commented 10 years ago

One can call directly

> 1:10 %>>% lapply(function(i) cat(i)) %>>% invisible
12345678910