with_options

0th

Percentile

Options

Temporarily change global options.

Usage
with_options(new, code)

local_options(new, .local_envir = parent.frame())

Arguments
new

[named list] New options and their values

code

[any] Code to execute in the temporary environment

.local_envir

[environment] The environment to use for scoping.

Value

[any] The results of the evaluation of the code argument.

See Also

withr for examples

options()

Aliases
  • with_options
  • local_options
Documentation reproduced from package withr, version 2.1.2, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.