Learn R Programming

SpaDES.core (version 2.0.5)

createsOutput: Define an output object of a module

Description

Used to specify an output object's name, class, description and other specifications.

Usage

createsOutput(objectName, objectClass, desc, ...)

# S4 method for ANY,ANY,ANY createsOutput(objectName, objectClass, desc, ...)

# S4 method for character,character,character createsOutput(objectName, objectClass, desc, ...)

Value

A data.frame suitable to be passed to outputObjects in a module's metadata.

Arguments

objectName

Character string to define the output object's name.

objectClass

Character string to specify the output object's class.

desc

Text string providing a brief description of the output object. If there are extra spaces or carriage returns, these will be stripped, allowing for multi-line character strings without using paste or multiple quotes.

...

Other specifications of the output object.

Author

Yong Luo

Examples

Run this code
outputObjects <- bindrows(
  createsOutput(objectName = "outputObject1", objectClass = "character",
                desc = "this is for example"),
  createsOutput(objectName = "outputObject2", objectClass = "numeric",
                desc = "this is for example",
                otherInformation = "I am the second output object")
)

Run the code above in your browser using DataLab