Skip to contents

Safely get tool object from toolbox instead of using direct @ access.

Usage

sn_get_tool(toolbox, tool_name)

Arguments

toolbox

Toolbox object

tool_name

Character. Tool name

Value

Tool object

Examples

if (FALSE) { # \dontrun{
# Instead of: toolbox@tools[[tool_name]]
tool <- sn_get_tool(toolbox, "samtools")
} # }