Description Usage Arguments Value See Also Examples
This function will create a runtime object(in S3) for module. In order to create a ModuleRuntime object, we should provide the following items:
which defines the inputs/outputs/parameters of the module.
the parameters at runtime.
the arguments from command line. In the format, like "A=1".
1 | ModuleRuntime(spec_json = "spec.json", zetrt_json = NULL, args = NULL)
|
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". |
A S3 object.
See Screwjack about howto create a module.
1 2 3 4 5 6 | rt <- ModuleRuntime(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
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.