modifyPathString | R Documentation |
System path string handlers
addToPathEnd(x, var = "PATH")
addToPathStart(x, var = "PATH")
removeFromPath(x, var = "PATH")
x |
|
var |
|
Invisible character(1)
.
Path string.
addToPathEnd()
: Note that input defined in x
is reversed internally, so the first element
in the vector is added to the end of the path string.
Updated 2021-08-23.
x <- c("/usr/local/bin", "/usr/bin")
var <- "TESTPATH"
Sys.unsetenv(var)
addToPathEnd(x = x, var = var)
Sys.getenv(var)
removeFromPath(x = x, var = var)
Sys.getenv(var)
addToPathStart(x = x, var = var)
Sys.getenv(var)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.