devtools (version 1.13.2)

path: Get/set the PATH variable.

Description

Get/set the PATH variable.

Usage

get_path()

set_path(path)

add_path(path, after = Inf)

Arguments

path

character vector of paths

after

for add_path, the place on the PATH where the new paths should be added

Value

set_path invisibly returns the old path.

See Also

with_path to temporarily set the path for a block of code

Other path: on_path

Examples

Run this code
# NOT RUN {
path <- get_path()
length(path)
old <- add_path(".")
length(get_path())
set_path(old)
length(get_path())
# }

Run the code above in your browser using DataLab