Temporarily change library paths.
with_libpaths(new, code, action = "replace")local_libpaths(new, action = "replace", .local_envir = parent.frame())
[character]
New library paths
[any]
Code to execute in the temporary environment
[character(1)]
should new values "replace"
, "prefix"
or
"suffix"
existing paths.
[environment]
The environment to use for scoping.
[any]
The results of the evaluation of the code
argument.
withr
for examples
Other libpaths: with_temp_libpaths