Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

with_package

Execture code with a modified search path


Description

Attaches a package to the search path (if not already attached), executes code and eventually removes the package from the search path again, restoring the previous state.

Note that this function is deprecated in favor of the (now fixed) version in withr.

Usage

with_package(package, code, ...)

Arguments

package

(character(1))
Name of the package to attach.

code

(expression)
Code to run.

...

(any)
Additional arguments passed to library().

Value

Result of the evaluation of code.

See Also

withr package.


mlr3misc

Helper Functions for 'mlr3'

v0.10.0
LGPL-3
Authors
Michel Lang [cre, aut] (<https://orcid.org/0000-0001-9754-0393>), Patrick Schratz [aut] (<https://orcid.org/0000-0003-0748-6624>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.