Execture code with a modified search path
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.
with_package(package, code, ...)
package |
( |
code |
( |
... |
( |
Result of the evaluation of code
.
withr package.
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.