get_build_code: Generate code to build stock-and-flow model

View source: R/simulate.R

get_build_codeR Documentation

Generate code to build stock-and-flow model

Description

Create R code to rebuild an existing stock-and-flow model. This may help to understand how a model is built, or to modify an existing one.

Usage

get_build_code(sfm)

Arguments

sfm

Stock-and-flow model, object of class sdbuildR_xmile.

Value

String with code to build stock-and-flow model from scratch.

Examples

sfm <- xmile("SIR")
get_build_code(sfm)


sdbuildR documentation built on Nov. 19, 2025, 5:07 p.m.