wbt_file_path | R Documentation |
Performs path expansion with path.expand()
and shell quotes with shQuote()
the input paths.
wbt_file_path(x, shell_quote = TRUE, delimiter = ",", check_exists = FALSE)
x |
character or |
shell_quote |
logical. Shell quotes around result? Default: |
delimiter |
character. Either |
check_exists |
logical. Check if file(s) in x exist? Useful for input values. Default: |
If an input vector contains ";"
or ","
this is considered, path expansion is performed on the substrings. If the input vector has length greater than 1
, the vector is concatenated with ","
or ";"
to create a single output string.
character. Length 1. A safe input string for use in WhiteboxTools commands, with paths expanded and concatenated, if necessary, and optionally shell quoted.
wbt_file_path("./abc.tif")
wbt_file_path("./abc.tif;./def.tif")
wbt_file_path("./abc.tif,./def.tif")
wbt_file_path(c("./abc.tif", "./def.tif"))
wbt_file_path("~/abc.tif", shell_quote = FALSE)
wbt_file_path(c("~/abc.tif", "~/def.tif"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.