R/generate_function_documentation.R
generate_function_documentation.Rd
The model needs to adhere to the structure specified by the modelbuilder package. Models built using the modelbuilder package automatically have the right structure. A user can also build a model list structure themselves following the modelbuilder specifications. If the user provides a file name, this file needs to be an Rds file and contain a valid modelbuilder model structure.
generate_function_documentation(mbmodel, modeltype)
mbmodel | modelbuilder model structure |
---|---|
modeltype | Indicates type of model code that is generated. One of ode/stochastic/discrete |
text that to be placed on top of function code generated by the calling function
This function takes as input a modelbuilder model and writes code that produces the header part used in the functions that create model code