Deprecated as of rlang 0.4.2. Use local_interactive()
,
local_options()
, or local_bindings()
instead.
Usage
scoped_interactive(value = TRUE, frame = caller_env())
scoped_options(..., .frame = caller_env())
scoped_bindings(..., .env = .frame, .frame = caller_env())
Arguments
- value
A single
TRUE
orFALSE
. This overrides the return value ofis_interactive()
.- frame, .frame
The environment of a running function which defines the scope of the temporary options. When the function returns, the options are reset to their original values.
- ...
For
local_options()
andpush_options()
, named values defining new option values. Forpeek_options()
, strings or character vectors of option names.- .env
An environment.