Description Usage Arguments Details Value See Also Examples
Creates a module object which can be executed in conduit.
1 2 |
name |
Name of module |
language |
|
host |
|
description |
A basic description of the module |
inputs |
List of |
outputs |
List of |
sources |
List of |
location |
file directory where module xml and files are found |
inputs
, outputs
, and sources
should be lists
of objects created using moduleInput
, moduleOutput
,
and moduleSource
respectively.
Module location
defaults to current working
directory. This can be set to indicate the location of the module
XML file, and its supporting files.
If moduleHost
is not provided module will be executed on
local machine.
module
list containing:
name |
module name |
language |
|
host |
|
description |
module description |
inputs |
list of |
outputs |
list of |
sources |
list of |
moduleInput
, moduleOutput
and
moduleSource
for creating objects for these
lists. loadModule
for reading a module from an XML
file. saveModule
for saving a module as an XML
file. runModule
for executing a module's source scripts.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | ## create a module with one output and one source
src1 <- moduleSource(vessel = scriptVessel(value = "x <- \"set\""))
outp1 <- moduleOutput(
name = "x",
internalVessel(symbol = "x"),
format = ioFormat("R character string"))
mod1 <- module(name = "setX", language = moduleLanguage("R"),
description = "sets the value of x",
outputs = list(outp1),
sources = list(src1))
## create a module with one input and one source
mod2 <-
module(
"showY",
language = moduleLanguage("R"),
description = "displays the value of Y",
inputs =
list(
moduleInput(
name = "y",
vessel = internalVessel(symbol = "y"),
format = ioFormat("R character string"))),
sources =
list(
moduleSource(
scriptVessel(value = "print(y)"))))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.