Open hadley opened 7 years ago
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 nestpas
pkg, so magrittr is operators only?
Could we find useful functionality for a fatalitee
too ;)
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 fatalitee
:) for no apparent reason.. but the mk voice would play in many minds ...
i.e.
Because it looks slightly nicer to my eye? See e.g. https://github.com/hadley/testthat/issues/482