-
Notifications
You must be signed in to change notification settings - Fork 161
Closed
Labels
featurea feature request or enhancementa feature request or enhancement
Description
It would be nice to have a general way to transform expressions of the form:
tryCatch(stop("!"), error = function(e) "An error")
The obvious transformation:
stop("!") %>%
tryCatch(error = function(e) "An error")
doesn't work because arguments in a pipeline are evaluated in sequence.
I no longer understand how the internals of magrittr work, but I wonder if it might be possible to use delayedAssign()
to overcome this problem.
peterhurford and saurfang
Metadata
Metadata
Assignees
Labels
featurea feature request or enhancementa feature request or enhancement