From d9676cfefd1c3d3463af443e4e5318bf5e1c5558 Mon Sep 17 00:00:00 2001 From: Andrew Gene Brown Date: Wed, 13 Apr 2022 09:57:20 -0700 Subject: [PATCH] New default value passed to `--listtools` (#73) * Closes #70 * Docs --- R/wbt.R | 4 ++-- man/wbt_list_tools.Rd | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/R/wbt.R b/R/wbt.R index 29f113da3..abb5899bd 100644 --- a/R/wbt.R +++ b/R/wbt.R @@ -593,7 +593,7 @@ wbt_version <- function() { #' All available tools in WhiteboxTools #' -#' @param keywords Keywords may be used to search available tools. +#' @param keywords Keywords may be used to search available tools. Default `"''"` returns all available tools. #' #' @return Return all available tools in WhiteboxTools that contain the keywords. #' @export @@ -602,7 +602,7 @@ wbt_version <- function() { #' \dontrun{ #' wbt_list_tools("lidar") #' } -wbt_list_tools <- function(keywords = NULL) { +wbt_list_tools <- function(keywords = "''") { ret <- wbt_system_call(paste("--listtools", keywords)) ret <- ret[ret != ""] if (wbt_verbose()) { diff --git a/man/wbt_list_tools.Rd b/man/wbt_list_tools.Rd index 6e528a2e1..2f7120ee9 100644 --- a/man/wbt_list_tools.Rd +++ b/man/wbt_list_tools.Rd @@ -4,10 +4,10 @@ \alias{wbt_list_tools} \title{All available tools in WhiteboxTools} \usage{ -wbt_list_tools(keywords = NULL) +wbt_list_tools(keywords = "''") } \arguments{ -\item{keywords}{Keywords may be used to search available tools.} +\item{keywords}{Keywords may be used to search available tools. Default \code{"''"} returns all available tools.} } \value{ Return all available tools in WhiteboxTools that contain the keywords.