Learn R Programming

pathological (version 0.1-1)

os_path: The OS path

Description

The locations in the operating system PATH environment variable.

Usage

os_path(sep = c("/", "\\"), standardize = TRUE, splitter = if (is_windows()) ";" else ":")

Arguments

sep
String separator between directory levels in the output.
standardize
Should the paths be standardized?
splitter
The character to split the PATH environment variable on. Defaults to a semi-colon on Windows systems and a colon elsewhere.

Value

A character vector of paths.

See Also

Sys.getenv

Examples

Run this code
os_path()

Run the code above in your browser using DataLab