Capture Arbitrary Conditions with `withCallingHandlers`

后端 未结 4 1360
梦毁少年i
梦毁少年i 2020-12-31 18:05

The Problem

I\'m trying to write a function that will evaluate code and store the results, including any possible conditions signaled in the code. I\'ve got this

4条回答
  •  -上瘾入骨i
    2020-12-31 18:41

    With a bit of C you can evaluate an expression within a ToplevelExec() to isolate it from all handlers registered on the stack.

    We will expose it at R level in the next rlang version.

提交回复
热议问题