sdbuildR1.0.8 package

Easily Build, Simulate, and Visualise Stock-and-Flow Models

rem_mod

Remainder and modulus

round_IM

Round Half-Up (as in Insight Maker)

step

Create step function

summary.sdbuildR_xmile

Print overview of stock-and-flow model

length_IM

Length of vector or string

get_units

View all standard units

has_internet

Check if user has internet

convert_u

Convert unit in equation

as.data.frame.sdbuildR_sim

Create data frame of simulation results

as.data.frame.sdbuildR_xmile

Convert stock-and-flow model to data frame

build

Create, modify or remove variables

clean_name

Clean variable name(s)

contains_IM

Check if needle is in haystack

debugger

Debug stock-and-flow model

drop_u

Drop unit in equation

ensemble

Run ensemble simulations

expit

Expit function

export_plot

Save plot to a file

find_dependencies

Find dependencies

get_build_code

Generate code to build stock-and-flow model

get_regex_time_units

Get regular expressions for time units in Julia

get_regex_units

Get regular expressions for units in Julia

header

Modify header of stock-and-flow model

indexof

Find index of needle in haystack

insightmaker_to_sfm

Import Insight Maker model

install_julia_env

Install, update, or remove Julia environment

julia_status

Check status of Julia installation and environment

logistic

Logistic function

logit

Logit function

macro

Create, modify or remove a global variable or function

model_units

Create, modify or remove custom units

nonnegative

Safely check whether x is less than zero

plot.sdbuildR_ensemble

Plot timeseries of ensemble

plot.sdbuildR_sim

Plot timeseries of simulation

plot.sdbuildR_xmile

Plot stock-and-flow diagram

print.summary.sdbuildR_xmile

Print method for summary.sdbuildR_xmile

pulse

Create pulse function

ramp

Create ramp function

rbool

Generate random logical value

rdist

Generate random number from custom distribution

saveat_func

Internal function to save data frame at specific times

seasonal

Create a seasonal wave function

sim_specs

Modify simulation specifications

simulate

Simulate stock-and-flow model

solvers

Check or translate between deSolve and Julia DifferentialEquations sol...

u

Specify unit in equations

unit_prefixes

Show unit prefixes

url_to_IM

Extract Insight Maker model from URL

use_julia

Start Julia and activate environment

use_threads

Set up threaded ensemble simulations

xmile

Create a new stock-and-flow model

Stock-and-flow models are a computational method from the field of system dynamics. They represent how systems change over time and are mathematically equivalent to ordinary differential equations. 'sdbuildR' (system dynamics builder) provides an intuitive interface for constructing stock-and-flow models without requiring extensive domain knowledge. Models can quickly be simulated and revised, supporting iterative development. 'sdbuildR' simulates models in 'R' and 'Julia', where 'Julia' offers unit support and large-scale ensemble simulations. Additionally, 'sdbuildR' can import models created in 'Insight Maker' (<https://insightmaker.com/>).

  • Maintainer: Kyra Caitlin Evers
  • License: GPL (>= 3)
  • Last published: 2025-11-19