withr: Run Code 'With' Temporarily Modified Global State

Share:

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.

Author
Jim Hester [aut, cre], Kirill Müller [aut], Hadley Wickham [aut], Winston Chang [aut], RStudio [cph]
Date of publication
2016-06-20 17:32:02
Maintainer
Jim Hester <james.f.hester@gmail.com>
License
GPL (>= 2)
Version
1.0.2
URLs

View on CRAN

Man pages

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

Files in this package

withr
withr/tests
withr/tests/testthat.R
withr/tests/testthat
withr/tests/testthat/test-sink.R
withr/tests/testthat/test-with.R
withr/NAMESPACE
withr/NEWS.md
withr/R
withr/R/locale.R
withr/R/sink.R
withr/R/with_.R
withr/R/env.R
withr/R/collate.R
withr/R/par.R
withr/R/options.R
withr/R/path.R
withr/R/wrap.R
withr/R/libpaths.R
withr/R/with.R
withr/R/dir.R
withr/R/makevars.R
withr/README.md
withr/MD5
withr/DESCRIPTION
withr/man
withr/man/with_envvar.Rd
withr/man/with_options.Rd
withr/man/with_sink.Rd
withr/man/withr.Rd
withr/man/with_locale.Rd
withr/man/with_par.Rd
withr/man/with_temp_libpaths.Rd
withr/man/with_dir.Rd
withr/man/with_.Rd
withr/man/with_libpaths.Rd
withr/man/with_path.Rd
withr/man/with_makevars.Rd
withr/man/with_collate.Rd