Temporarily use a given injector.
with_injector(injector, code)
injector | An injector (R environment). |
---|---|
code | Any object. Code to execute with the temporary injector. |
The result of the evaluation of the code
argument.
withr
for examples of 'with_' methods.