Temporarily use a given injector.

with_injector(injector, code)

Arguments

injector

An injector (R environment).

code

Any object. Code to execute with the temporary injector.

Value

The result of the evaluation of the code argument.

See also

withr for examples of 'with_' methods.