View source: R/CoreFunctions.R
dispatchCommand | R Documentation |
This is a helper function used in the fusionwrapr package to either execute command lines or write them to a file.
dispatchCommand(
cmd,
options,
required,
runCmd,
saveCmd,
cmdClear,
cmdFile,
comment = NULL
)
cmd |
character string containing the program name and possibly the path. |
options |
character string containing command line options. |
required |
character string(s) containing required parameters for the command line. |
runCmd |
boolean indicating command line should be executed. |
saveCmd |
boolean indicating command line should be written to a file. |
cmdClear |
boolean indicating file for command should be deleted before the command line is written. |
cmdFile |
character string containing the name of the file to which commands should be written. |
comment |
character string containing comment to be written to command file before writing
the actual command. Only used when |
A single integer value or vector of integers. If required
is a vector of
strings and runCmd = TRUE
, the return is a vector of return codes from the
operating system indicating the return values from the FUSION program. If required
is a vector of values, runCmd = FALSE
and saveCmd = TRUE
, the return
is a vector of zeros. if required
is a single string and runCmd = TRUE
,
the return is the return value from the FUSION program. If required
is a single
string and runCmd = FALSE
and saveaCmd = TRUE
, the return value is 0.
## Not run:
dispatchCommand("ClipData", "/minht:2.0", "*.las clip1.las", runCmd = TRUE)
dispatchCommand("ClipData", "/minht:2.0", "*.las clip1.las",
runCmd = FALSE, cmdClear = TRUE, cmdFile = "test.bat")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.