sys_which: Find paths to executables

Description Usage Arguments Value See Also Examples

View source: R/wrappers.R

Description

Wrapper to Sys.which, that returns standardized paths.

Usage

1
sys_which(x, sep = c("/", "\\"))

Arguments

x

A character vector of executables.

sep

String separator between directory levels in the output.

Value

A character vector of paths to those executables, or NA if it doesn't exist. (This behaviour for missing executables differs from Sys.which.)

See Also

Sys.which

Examples

1
2
sys_which("R")              # R executable
sys_which(c("make", "gcc")) # tools for running Rcpp

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