You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the evaluation of f() can be seen by the side-effect
> g() # side-effect
f
[1] 3
The failure to re-establish the original handler is seen with
> options("error") # local option not removed
$error
(function (...)
{
cat("g\n")
2
})()
The problem is in the call to set_options when returning from g()
> withr:::set_options
function (new_options)
{
do.call(options, as.list(new_options))
}
where do.call() evaluates as.list(new_options).
The problem came up in the context of RUnit (setting the equivalent of f() to report the traceback on error) and batchtools @mllg playing the role of g()
With
the evaluation of
f()
can be seen by the side-effectThe failure to re-establish the original handler is seen with
The problem is in the call to set_options when returning from
g()
where
do.call()
evaluatesas.list(new_options)
.The problem came up in the context of RUnit (setting the equivalent of
f()
to report the traceback on error) and batchtools @mllg playing the role ofg()
The text was updated successfully, but these errors were encountered: