DCRuntime: 'DCRuntime' will parse and extract Input/Output/Paramter, and...

Description Usage Arguments Value See Also Examples

Description

This function will create a runtime object(in S3) for module. In order to create a DCRuntime object, we should provide the following items:

spec.json

which defines the inputs/outputs/parameters of the module.

zetrt.json

the parameters at runtime.

arguments

the arguments from command line. In the format, like "A=1".

Usage

1
DCRuntime(spec_json = "spec.json", zetrt_json = NULL, args = NULL)

Arguments

spec_json

The path for "spec.json".

zetrt_json

The path for "zetrt.json". The default is NULL, which means we can get it from system environment variable "ZETRT".

args

The arguments for Input/Output with format like "A=1". The default is NULL, which means we can get it from command line arguments with "commandArgs".

Value

A S3 object.

See Also

See Screwjack about howto create a module.

Examples

1
2
3
4
5
6
7
8
9
## Not run: example to use DCRuntime
  rt <- DCRuntime(spec_json = "/your_path/spec.json",
                      zetrt_json = "/some_path/zetrt.json")
  # Use "rt" like this:
  rt$Output$o1$Val
  rt$Input$i1$Val
  rt$Param$P1$Val

## End(Not run)

RDataCanvas documentation built on May 2, 2019, 2:10 p.m.