Execture code with a modified search pathSource:
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.
Name of the package to attach.
Code to run.
Additional arguments passed to