Skip to contents

Safely get tool command names instead of using direct @ access.

Usage

sn_get_tool_commands(tool)

Arguments

tool

Tool object

Value

Character. Available command names

Examples

if (FALSE) { # \dontrun{
# Instead of: names(tool@commands)
commands <- sn_get_tool_commands(tool)
if ("align" %in% commands) {
  # Tool supports align command
}
} # }