check_command: Check if command exists

Description Usage Arguments Details Value

View source: R/check_command.R

Description

Check if command exists

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
check_command(x)

assert_command(x, .var.name = checkmate::vname(x), add = NULL)

test_command(x)

checkCommand(x)

assertCommand(x, .var.name = checkmate::vname(x), add = NULL)

testCommand(x)

Arguments

x

[string]
Command to check.

.var.name

[string]
Name of the checked object to print in assertions. Defaults to the heuristic implemented in vname.

add

[AssertCollection]
Collection to store assertion messages. See AssertCollection.

Details

See checkmate for details.

Value

If the check is successful, i.e. the system command is found, returns TRUE. If the check is not successful, returns a string with the error message.


imbs-hl/imbs documentation built on Sept. 6, 2019, 11:05 p.m.