We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
deferred_run
I wonder if this is the expected behavior of deferred_run:
env <- rlang::new_environment() local_print <- function(path) { withr::defer(print("defered"), envir = env) attributes(env) } local({ local_print() }) #> NULL withr::deferred_run(env) #> No deferred expressions to run
I know that deferred_run is mostly inteded to run actions in the global environment:
The global environment scenario is the main motivation for these functions.
FWIW deferred_run() executes the deferred expression in withr 2.5
deferred_run()
The text was updated successfully, but these errors were encountered:
yep expected, it will only work if env is a frame environment currently on the call stack
env
Sorry, something went wrong.
No branches or pull requests
I wonder if this is the expected behavior of
deferred_run
:I know that
deferred_run
is mostly inteded to run actions in the global environment:FWIW
deferred_run()
executes the deferred expression in withr 2.5The text was updated successfully, but these errors were encountered: