path

0th

Percentile

Get/set the PATH variable.

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

Aliases
  • add_path
  • get_path
  • path
  • set_path
Examples
path <- get_path()
length(path)
old <- add_path(".")
length(get_path())
set_path(old)
length(get_path())
Documentation reproduced from package devtools, version 1.11.1, License: GPL (>= 2)

Community examples

Looks like there are no examples yet.