This function checks if a list of system commands are available on the user's PATH.
Value
The function returns TRUE
if all specified commands are available
on the system, FALSE
if any is not available.
Examples
# Check for the availability of system commands
check_system_command(c("unzip", "head"))
#> [1] TRUE
# return FALSE, with a warning for a missing command
check_system_command(c("unzip", "head", "curl", "missing"))
#> Warning: The following tool(s) are missing: missing
#> [1] FALSE
# return FALSE, without a warning for a missing command
check_system_command(c("unzip", "head", "curl", "missing"), warning = FALSE)
#> [1] FALSE