Learn R Programming

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

withr (version 1.0.1)

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

1,270,136

Version

1.0.1

License

GPL (>= 2)

Issues

Pull Requests

Stars

Forks

Maintainer

Jim Hester

Last Published

February 4th, 2016

Functions in withr (1.0.1)

with_

Create a new "with" function
with_dir

Working directory
with_envvar

Environment variables
with_par

Graphics parameters
with_options

Options
with_path

PATH environment variable
with_locale

Locale settings
with_sink

Output redirection
with_libpaths

Library paths
with_makevars

Makevars variables
with_collate

Collation Order
withr

Execute code in temporarily altered environment
with_temp_libpaths

Library paths