with_injector: With Injector.

View source: R/modulr.R

with_injectorR Documentation

With Injector.

Description

Temporarily use a given injector.

Usage

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.


aclemen1/modulr documentation built on Oct. 2, 2024, 7:18 a.m.