Skip to contents

Removes a tool (and optionally uninstalls it) from the toolbox.

Usage

sn_remove_tool(toolbox, tool_name, version = NULL, uninstall = TRUE)

Arguments

toolbox

Toolbox object.

tool_name

Character. Name of the tool to remove.

version

Character. Version to remove. If NULL, removes all versions.

uninstall

Logical. Whether to uninstall before removing.

Value

Updated Toolbox object.

Examples

if (FALSE) { # \dontrun{
# Remove specific version
toolbox <- sn_remove_tool(toolbox, "samtools", "1.22")

# Remove all versions
toolbox <- sn_remove_tool(toolbox, "samtools")
} # }