with_path | R Documentation |
Temporarily change the system search path.
with_path(new, code, action = c("prefix", "suffix", "replace"))
local_path(
new = list(),
action = c("prefix", "suffix", "replace"),
.local_envir = parent.frame()
)
new |
|
code |
|
action |
|
.local_envir |
|
[any]
The results of the evaluation of the code
argument.
withr
for examples
Sys.setenv()
# temporarily modify the system PATH, *prefixing* the current path
with_path(getwd(), Sys.getenv("PATH"))
# temporarily modify the system PATH, *appending* to the current path
with_path(getwd(), Sys.getenv("PATH"), "suffix")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.