Learn R Programming

⚠️There's a newer version (3.0.1) of this package.Take me there.

withr (version 1.0.0)

Run Code 'With' Temporarily Modified Global State

Description

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.

Copy Link

Version

Install

install.packages('withr')

Monthly Downloads

2,160,636

Version

1.0.0

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jim Hester

Last Published

September 23rd, 2015

Functions in withr (1.0.0)

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