
Havests model item definitions.
Creates a model item definitions from a definitions object.
Create Item Definitions from Model Name
definitions(x, ...)# S3 method for definitions
definitions(x, ...)
# S3 method for character
definitions(x, verbose = FALSE, ctlfile = modelfile(x,
...), metafile = modelpath(x, "def", ...), fields = c("symbol", "label",
"unit"), read = length(metafile) == 1, write = FALSE, ...)
object of dispatch
arguments to methods
set FALSE to suppress messages
path to control stream (pass length-zero argument to ignore)
path to definitions file (pass length-zero argument to ignore)
metadata fields to read from control stream if no metafile
whether to read the definitions file
whether to write the definitions file
object of class definitions, or path to metafile if write = TRUE.
definitions
: definitions method
character
: character method
x can be numeric or character model name, assuming project is identified by argument or option.
Just returns the object unmodified.
Creates item definitions from a model name. Scavenges definitions optionally from the control stream and optionally from the definitions file. Optionally writes the result to the definitions file. Always returns a data.frame with at least the column 'item' but possibly no rows.
# NOT RUN {
library(magrittr)
options(project = system.file('project/model',package='nonmemica'))
1001 %>% definitions
# }
Run the code above in your browser using DataLab