auxiliary/docsfordevelopers/documentation.md

Documentation for working on the modelbuilder package

Package structure/use

Package organization

Main functions

Main app materials

Other folders

Package coding conventions

modelbuilder mbmodel structure

Each model is stored in a list object called mbmodel, and saved as an Rds file.

The model list will have the components described below. The following constraints are currently imposed:

Meta-Information

Variable information

i = 1..number of variables

Parameter information

i = 1..number of parameters

Time information

i = 1,2,3 being tstart, tfinal and dt

Optional/possibly for (much) later when we implement fitting to data:

Model examples

Several model examples following the above structure are in the \auxiliary\modelfiles folder. They are provided both as Rds files and as .R scripts which can be run to produce the Rds files. A script in \auxiliary\helperfuncttions can take a mbmodel provided as Rds or R file and produce the other file. It can also turn any Rds or R script into ode/stochastic/discrete function code.

General information for package development

To work on package through RStudio:

Dependency packages for development

To update R documentation and vignette

To build the package

To-do at release time (no CRAN release for this package yet)



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