Debian Codegraph @

tests/testthat/_snaps/standalone-defer.md

raw symbols SCIP
1 # defer()'s global env facilities work
2
3 Code
4 defer(print("howdy"), envir = globalenv())
5 Message
6 Setting global deferred event(s).
7 i These will be run:
8 * Automatically, when the R session ends.
9 * On demand, if you call `withr::deferred_run()`.
10 i Use `withr::deferred_clear()` to clear them without executing.
11
12 # don't need to enable source for the global env
13
14 Code
15 source(file, local = globalenv())
16 Output
17 1
18 2
19 deferred
20