Skip to contents

This function checks if a list of system commands are available on the user's PATH. If any commands are missing, it stops execution and returns an informative error message.

Usage

CheckCommands(Commands)

Arguments

Commands

A character vector of system command names to check (e.g., c("git", "Rscript", "unzip")).

Value

The function returns TRUE if all specified commands are available on the system, FALSE if any is not available.

Author

Ahmed El-Gabbas

Examples

CheckCommands(c("unzip", "head", "curl"))
#> [1] TRUE