on_path: Check if something is on the system path (Windows only)

View source: R/on_path.r

on_pathR Documentation

Check if something is on the system path (Windows only)

Description

Check if something is on the system path. It does this by using the where.exe utility.

Usage

on_path(what, verbose = TRUE)

Arguments

what

(character) a string, typically to file

verbose

(logical; default = TRUE) message the path location?

Value

logical, TRUE if a match is found

Examples

## Not run: 
# Is Rscript on path?
on_path(what = "Rscript")

## End(Not run)

baslat/sak documentation built on April 14, 2025, 4:14 p.m.