rlang icon indicating copy to clipboard operation
rlang copied to clipboard

'deferred_run' undefined

Open MichaelChirico opened this issue 5 months ago • 1 comments

https://github.com/r-lib/rlang/blob/7371bac25ffe9b91097e0dad424cec5b2ee3c288/R/import-standalone-defer.R#L87

I think the import here was not complete.

Encountered through {testthat}:

testthat::local_edition(3) # from .GlobalEnv
q('no')
# Error in deferred_run(env) : could not find function "deferred_run"

Or simpler shell version:

Rscript -e "testthat::local_edition(3)"
# Error in deferred_run(env) : could not find function "deferred_run"
# Calls: <Anonymous>

MichaelChirico avatar Jul 23 '25 22:07 MichaelChirico

Duplicate of #1653. That one is self-contained to {rlang}, but this one shows the downstream impacts; I'll let you triage :)

MichaelChirico avatar Jul 23 '25 22:07 MichaelChirico