-
Notifications
You must be signed in to change notification settings - Fork 158
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
Tee function? #135
Comments
Also this just occurred to me: safetee <- function(x, ...) {
try(list(...))
x
} |
The puns keep coming: finalitee <- function(x, ..., finally) {
if (!missing(finally))
on.exit(finally)
list(...)
x
} |
Love the puns :) Would these belong in magrittr, though, if we remove the aliases? They could also join them in the |
Could we find useful functionality for a |
Yeah, might be better in nestpas, although these feel a bit more pipe related than the aliases. Could also have a tee micropackage. |
Maybe that could be called |
i.e.
Because it looks slightly nicer to my eye? See e.g. r-lib/testthat#482
The text was updated successfully, but these errors were encountered: