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_inputs(mbmodel, modeltype)

Arguments

mbmodel

modelbuilder model structure

modeltype

Indicates type of model code that is generated. One of ode/stochastic/discrete

Value

text that to be placed on top of function code generated by the calling function

Details

This function takes as input a modelbuilder model and writes code that produces text needed to create the main function call and the var/par/time vectors