expectsInput: Define an input object that the module expects.

Description Usage Arguments Value Author(s) Examples

Description

Used to specify an input object's name, class, description, source url and other specifications.

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
expectsInput(objectName, objectClass, desc, sourceURL, ...)

## S4 method for signature 'ANY,ANY,ANY,ANY'
expectsInput(objectName, objectClass, desc, sourceURL, ...)

## S4 method for signature 'character,character,character,character'
expectsInput(objectName, objectClass, desc, sourceURL, ...)

## S4 method for signature 'character,character,character,missing'
expectsInput(objectName, objectClass, desc, sourceURL, ...)

Arguments

objectName

Character string to define the input object's name.

objectClass

Character string to specify the input object's class.

desc

Text string providing a brief description of the input 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.

sourceURL

Character string to specify an URL to reach the input object, default is NA.

...

Other specifications of the input object.

Value

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

Author(s)

Yong Luo

Examples

1
2
3
4
5
6
7
inputObjects <- bindrows(
  expectsInput(objectName = "inputObject1", objectClass = "character",
               desc = "this is for example", sourceURL = "not available"),
  expectsInput(objectName = "inputObject2", objectClass = "numeric",
               desc = "this is for example", sourceURL = "not available",
               otherInformation = "I am the second input object")
)

SpaDES.core documentation built on Sept. 30, 2021, 5:10 p.m.