Skip to contents

Is a system command installed?

Usage

isSystemCommand(x)

isASystemCommand(x)

Arguments

x

Object.

Value

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

Functions

  • isSystemCommand(): Vectorized.

  • isASystemCommand(): Scalar.

Note

Updated 2023-09-29.

Examples

## TRUE ====
isSystemCommand(c("cp", "rm"))
#> [1] TRUE TRUE

## FALSE ====
isSystemCommand(c("AAA", "BBB"))
#> [1] FALSE FALSE