renkun-ken / pipeR

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

Use withVisible() in Pipe to know if a value is returned invisibly #48

Closed renkun-ken closed 10 years ago

renkun-ken commented 10 years ago

Currently, when Pipe object is printed, it examines if the output value is NULL to determine whether the value should be printed. As a result, only NULL value will not be printed.

However, some functions return invisible value, (e.g. hist()). print.Pipe() should inherit the visibility of the value in Pipe.

See http://stackoverflow.com/questions/25867560/how-can-i-know-if-a-value-is-invisibly-returned-by-a-function.