defer() can set deferred events on
.GlobalEnv to facilitate the interactive development of code inside a function or test. Helpers
deferred_clear()) provide a way to explicity run and clear (or just clear) deferred events (#76, @jennybc).
with_connection() now works when existing objects or connections exist with the same names (#120)
with_package() now does not try to detach the package if it is already attached before calling
with_preserve_seed() now restores
.Random.seed if it is not set originally (#124).
with_svg() documentation now is consistent across R versions (#129)
Fixes test failures with testthat 2.0.0
with_file() function to automatically remove files.
with_connection() function to automatically close R file connections.
with_db_connection() function to automatically disconnect from DBI database connections.
with_gctorture2 command to run code with gctorture2, useful for testing (#47).
with_environment() (and equivalent locals) functions added, to run code with a modified object search path (#38,
local_tempfile() functions to create temporary files which are cleanup up afterwards. (#32)
code argument from
local_ functions (#50).
assignmentargument to allow specifying additional assignment types.