devtools (version 1.11.1)

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
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 DataCamp Workspace