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