-
Add
with_timezone()
andlocal_timezone()
functions to change the time zone (#92, @gaborcsardi). -
Add
with_rng_version()
andlocal_rng_version()
functions to change the version of the RNG (#90, @gaborcsardi). -
with_makevars()
now usestools::makevars_user()
to determine the default user makevars file (#77, @siddharthab). -
with_options()
no longer usesdo.call()
, so optiosn are not evaluated on exit (#73, @mtmorgan).
-
set_makevars()
is now exported (#68, @gaborcsardi). -
with_temp_libpaths()
gains anaction
argument, to specify how the temporary library path will be added (#66, @krlmlr).
-
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_package()
,with_namespace()
andwith_environment()
(and equivalent locals) functions added, to run code with a modified object search path (#38, #48). -
Add
with_tempfile()
andlocal_tempfile()
functions to create temporary files which are cleanup up afterwards. (#32) -
Remove the
code
argument fromlocal_
functions (#50).
-
Each
with_
function now has alocal_
variant, which reset at the end of their local scope, generally at the end of the function body. -
New functions
with_seed()
andwith_preserve_seed()
for running code with a given random seed (#45, @krlmlr).
with_makevars()
gains anassignment
argument to allow specifying additional assignment types.
- Relaxed R version requirement to 3.0.2 (#35, #39).
- New
with_output_sink()
andwith_message_sink()
(#24).
- First Public Release