Run a system command and check if it succeeds.
system_check(cmd, args = character(), env_vars = character(),
path = ".", quiet = FALSE, throw = TRUE, ...)Command to run. Will be quoted by shQuote().
A character vector of arguments.
A named character vector of environment variables.
Path in which to execute the command
If FALSE, the command to be run will be echoed.
If TRUE, will throw an error if the command fails
(i.e. the return value is not 0).
additional arguments passed to base::system()
The exit status of the command, invisibly.