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).

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

Examples

# Find the path to `gdalinfo` gdalinfo_path <- find_command("gdalinfo")