-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
CONSISTENCY: Should all futures capture stdout & stderr as well? #67
Comments
Note: To move forward on this one, I think one should ignore stderr for now (because it's non-stackable by sink), and just worry about capturing standard output (stdout). The API could be extended using: $ f <- future(..., stdout = TRUE) ## stdout = TRUE could be the new default.
$ v <- value(f)
$ str <- captured_stdout(f) Need a better name than |
Another feature could be a Another related feature is to have this called asap/automatically, i.e. when the value has been retrieved. A generalization of that thought leads to hook functions. |
UPDATE 2018-03-05: (in the |
Moved to Issue #232. Closing this one. |
Should all futures capture stdout & stderr as well, at least as an options, such that we can get a consistent behavior also for such output across all types of futures?
UPDATE: It's possible to stack output to stdout, e.g.
However, it's not possible to stack message (stderr) outputs:
The latter two lines are outputted to the message, which reopened, because the inner capture resets it to the default when it closes it's redirect.
The text was updated successfully, but these errors were encountered: