powered by
Get/set the PATH variable.
get_path()set_path(path)add_path(path, after = Inf)
set_path(path)
add_path(path, after = Inf)
character vector of paths
for add_path, the place on the PATH where the new paths should be added
add_path
set_path invisibly returns the old path.
set_path
with_path to temporarily set the path for a block of code
with_path
Other path: on_path
on_path
# 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