with_libpaths | R Documentation |
Temporarily change library paths.
with_libpaths(new, code, action = "replace")
local_libpaths(new = list(), action = "replace", .local_envir = parent.frame())
new |
|
code |
|
action |
|
.local_envir |
|
[any]
The results of the evaluation of the code
argument.
withr
for examples
.libPaths()
Other libpaths:
with_temp_libpaths()
.libPaths()
new_lib <- tempfile()
dir.create(new_lib)
with_libpaths(new_lib, print(.libPaths()))
unlink(new_lib, recursive = TRUE)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.