Command
is an R6 class used by developers to create new command. It should
not be used by end users.
Methods
Method new()
Create a new Command
object.
Arguments
...
Additional argument passed into command.
Method build_command()
Build the command line
Usage
Command$build_command(help = FALSE, verbose = TRUE)
Arguments
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.
Returns
An atomic character combine the command and parameters.
Method get_on_start()
Get the command startup code
Method get_on_exit()
Get the command exit code
Method get_on_fail()
Get the command failure code
Method get_on_succeed()
Get the command succeessful code
Build parameters to run command.
Usage
Command$print(indent = NULL)
Arguments
indent
A single integer number giving the space of indent.
Returns
The object itself.
Method clone()
The objects of this class are cloneable with this method.
Usage
Command$clone(deep = FALSE)
Arguments
deep
Whether to make a deep clone.