Learn R Programming

pathological (version 0.1-1)

sys_which: Find paths to executables

Description

Wrapper to Sys.which, that returns standardized paths.

Usage

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

Run this code
sys_which("R")              # R executable
sys_which(c("make", "gcc")) # tools for running Rcpp

Run the code above in your browser using DataLab