Skip to contents

Split path string environment variable

Usage

splitPathString(x = Sys.getenv("PATH"))

Arguments

x

character(1). PATH string, containing elements separated with a colon (":"). Defaults to system path string.

Value

character. Discrete path elements in a vector. Intentionally does not make elements unique.

Note

Updated 2021-08-18.

See also

  • Sys.getenv("PATH")

Examples

splitPathString()
#> [1] "/Applications/RStudio.app/Contents/MacOS/pandoc"
#> [2] "/opt/koopa/opt/subversion/bin"                  
#> [3] "/opt/koopa/opt/pkg-config/bin"                  
#> [4] "/opt/koopa/opt/libpng/bin"                      
#> [5] "/opt/koopa/bin"                                 
#> [6] "/usr/bin"                                       
#> [7] "/bin"                                           
#> [8] "/Library/TeX/texbin"