Learn R Programming

whitebox (version 0.1.0)

wbt_run_tool: Run a tool.

Description

Runs a tool and specifies tool arguments.

Usage

wbt_run_tool(tool_name, args, verbose_mode = FALSE)

Arguments

tool_name

The name of the tool to run.

args

Tool arguments.

verbose_mode

Verbose mode. Without this flag, tool outputs will not be printed.

Value

Returns the output descriptions of the tool.

Examples

Run this code
# NOT RUN {
tool_name <- "breach_depressions"
dem <- system.file("extdata", "DEM.tif", package="whitebox")
output <- "./output.tif"
arg1 <- paste0("--dem=", dem)
arg2 <- paste0("--output=", output)
args <- paste(arg1, arg2)
wbt_run_tool(tool_name, args)
# }

Run the code above in your browser using DataLab