Is a system command installed?

isSystemCommand(x)

Arguments

x

Object.

Value

TRUE on success; FALSE on failure, with cause set.

Functions

  • isSystemCommand: Vectorized.

Note

Updated 2020-04-08.

Examples

## TRUE ==== isSystemCommand(c("cp", "rm"))
#> cp rm #> TRUE TRUE
## FALSE ==== isSystemCommand(c("AAA", "BBB"))
#> [1] FALSE FALSE #> Cause: 2 failures #> pos value cause #> 1 1 AAA not command #> 2 2 BBB not command