generate_function_inputs: Create function input/arguments part for a simulation model

View source: R/generate_function_inputs.R

generate_function_inputsR Documentation

Create function input/arguments part for a simulation model

Description

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.

Usage

generate_function_inputs(mbmodel, modeltype)

Arguments

mbmodel

modelbuilder model structure

modeltype

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

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

Value

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


ahgroup/modelbuilder documentation built on April 14, 2024, 2:29 p.m.