Learn R Programming

commandr (version 1.0.1)

Command pattern in R

Description

An S4 representation of the Command design pattern. The Operation class is a simple implementation using closures and supports forward and reverse (undo) evaluation. The more complicated Protocol framework represents each type of command (or analytical protocol) by a formal S4 class. Commands may be grouped and consecutively executed using the Pipeline class. Example use cases include logging, do/undo, analysis pipelines, GUI actions, parallel processing, etc.

Copy Link

Version

Install

install.packages('commandr')

Monthly Downloads

40

Version

1.0.1

License

Artistic-2.0

Maintainer

Last Published

August 25th, 2014

Functions in commandr (1.0.1)

Command-class

Virtual Command Class
Pipeline-class

Pipeline: A Sequence of Protocols
Protocol-class

Protocol: Concrete Step in a Pipeline
PipelineData-class

PipelineData: Data with history
Stage-class

Stage: Abstract Step in a Pipeline
setStage

Define a Stage Class
setProtocol

Define a Protocol Type
Operation-class

Operation: A Simple Command Implementation