R6 Class to prepare command parameters
R6 Class to prepare command parameters
new()
Create a new Command
object.
Command$new(..., .subcmd = NULL)
...
Additional argument passed into command.
.subcmd
Sub-command string.
evaluate()
Evaluate the parameters to execute command.
Command$evaluate()
The object itself.
build()
Build parameters to run command.
Command$build(help = FALSE, verbose = TRUE, envir = caller_env())
help
A boolean value indicating whether to build parameters for help document or not.
verbose
A boolean value indicating whether the command execution should be verbose.
envir
An environment used to Execute command.
An atomic character combine the command and parameters.
indent
A single integer number giving the space of indent.
The object itself.
clone()
The objects of this class are cloneable with this method.
Command$clone(deep = FALSE)
deep
Whether to make a deep clone.