Is the package installed?

isInstalled(x)

allAreInstalled(x)

Arguments

x

Object.

Value

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

Functions

  • isInstalled: Vectorized.

  • allAreInstalled: Scalar.

Note

Updated 2020-04-08.

Examples

## TRUE ==== isInstalled(c("base", "utils"))
#> base utils #> TRUE TRUE
## FALSE ==== isInstalled(c("AAA", "BBB"))
#> [1] FALSE FALSE #> Cause: 2 failures #> pos value cause #> 1 1 AAA not installed #> 2 2 BBB not installed