Learn R Programming

devtools (version 1.13.3)

on_path: Test if an object is on the path.

Description

Test if an object is on the path.

Usage

on_path(...)

Arguments

...

Strings indicating the executables to check for on the path.

See Also

Other path: path

Examples

Run this code
# NOT RUN {
on_path("R")
on_path("gcc")
on_path("foo", "bar")  # FALSE in most cases
withr::with_path(tempdir(), on_path("gcc"))
# }

Run the code above in your browser using DataLab