os_path: The OS path

Description Usage Arguments Value See Also Examples

View source: R/os-path.R

Description

The locations in the operating system PATH environment variable.

Usage

1
2
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

1

richierocks/pathological documentation built on May 27, 2019, 8:47 a.m.