moduleParams {SpaDES.core} | R Documentation |
Extract a module's parameters, inputs, or outputs
Description
These are more or less wrappers around moduleMetadata
, with the exception
that extraneous spaces and End-Of-Line characters will be removed from the
desc
arguments in defineParameters
, defineInputs
, and
defineOutputs
Usage
moduleParams(module, path)
## S4 method for signature 'character,character'
moduleParams(module, path)
moduleInputs(module, path)
## S4 method for signature 'character,character'
moduleInputs(module, path)
moduleOutputs(module, path)
## S4 method for signature 'character,character'
moduleOutputs(module, path)
Arguments
module |
Character string. Your module's name. |
path |
Character string specifying the file path to modules directory.
Default is to use the |
Value
data.frame
Author(s)
Alex Chubaty
See Also
Examples
## easily include these tables in Rmd files using knitr
path <- getSampleModules(tempdir())
sampleModules <- dir(path)
p <- moduleParams(sampleModules[3], path = path)
i <- moduleInputs(sampleModules[3], path = path)
o <- moduleOutputs(sampleModules[3], path = path)
knitr::kable(p)
knitr::kable(i)
knitr::kable(o)
[Package SpaDES.core version 2.1.0 Index]