Learn R Programming

blit (version 0.1.0)

Command: R6 Class to prepare command parameters

Description

R6 Class to prepare command parameters

R6 Class to prepare command parameters

Arguments

Methods


Method new()

Create a new Command object.

Usage

Command$new(..., .subcmd = NULL)

Arguments

...

Additional argument passed into command.

.subcmd

Sub-command string.


Method evaluate()

Evaluate the parameters to execute command.

Usage

Command$evaluate()

Returns

The object itself.


Method build()

Build parameters to run command.

Usage

Command$build(help = FALSE, verbose = TRUE, envir = caller_env())

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 print()

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.