find_command: find the path to a specified command

Description Usage Arguments Value Author(s) Examples

View source: R/find_command.R

Description

helper function allowing to find the path to a given command on the system of the user. If the command is not found, a stop is issued and the program aborts (gracefully).

Usage

1
find_command(command, stop_on_missing = TRUE)

Arguments

command

character command to be search in the system (e.g., "gdalinfo")

stop_on_missing

PARAM_DESCRIPTION, Default: TRUE

Value

character normalized path to the desired command

Author(s)

Lorenzo Busetto lbusett@gmail.com

Examples

1
2
3
4
5
## Not run: 
 # Find the path to `gdalinfo`
 gdalinfo_path <- find_command("gdalinfo")
 
## End(Not run)

IREA-CNR-MI/sprawl documentation built on May 27, 2019, 1:12 p.m.