withr
withr copied to clipboard
Bind `done` to `deferred_run()`
And consider somehow changing the prompt while the global environment has deferred state.
Either with an active binding or an object that calls deferred_run() when printing (and IIRC the second option plays more nicely with RStudio)