withr v1.0.0


Monthly downloads



by Jim Hester

Run Code 'With' Temporarily Modified Global State

A set of functions to run code 'with' safely and temporarily modified global state. Many of these functions were originally a part of the devtools package, this provides a simple package with limited dependencies to provide access to these functions.

Functions in withr

Name Description
with_libpaths Library paths
with_par Graphics parameters
with_options Options
with_envvar Environment variables
with_temp_libpaths Library paths
with_collate Collation Order
with_makevars Makevars variables
with_locale Locale settings
with_path PATH environment variable
with_ Create a new "with" function
with_dir Working directory
withr Execute code in temporarily altered environment
No Results!

Last month downloads


Encoding UTF-8
URL http://github.com/jimhester/withr
BugReports http://github.com/jimhester/withr/issues
License GPL (>= 2)
LazyData true
Collate 'with_.R' 'collate.R' 'dir.R' 'env.R' 'libpaths.R' 'locale.R' 'makevars.R' 'options.R' 'par.R' 'path.R' 'with.R'
NeedsCompilation no
Packaged 2015-09-22 14:09:44 UTC; jhester
Repository CRAN
Date/Publication 2015-09-23 02:58:41

Include our badge in your README