Package: sdbuildR 1.0.8.9000

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

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/>).

Authors:Kyra Caitlin Evers [aut, cre, cph]

sdbuildR_1.0.8.9000.tar.gz
sdbuildR_1.0.8.9000.zip(r-4.7)sdbuildR_1.0.8.9000.zip(r-4.6)sdbuildR_1.0.8.9000.zip(r-4.5)
sdbuildR_1.0.8.9000.tgz(r-4.6-any)sdbuildR_1.0.8.9000.tgz(r-4.5-any)
sdbuildR_1.0.8.9000.tar.gz(r-4.7-any)sdbuildR_1.0.8.9000.tar.gz(r-4.6-any)
sdbuildR_1.0.8.9000.tgz(r-4.6-emscripten)
manual.pdf |manual.html
card.svg |card.png
sdbuildR/json (API)
NEWS

# Install 'sdbuildR' in R:
install.packages('sdbuildR', repos = c('https://kcevers.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/kcevers/sdbuildr/issues

Pkgdown/docs site:https://kcevers.github.io

On CRAN:

Conda:

4.53 score 4 stars 9 scripts 519 downloads 47 exports 85 dependencies

Last updated from:63e4db0fd6. Checks:9 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-x86_64OK230
source / vignettesOK218
linux-release-x86_64OK217
macos-release-arm64OK256
macos-oldrel-arm64OK283
windows-develOK256
windows-releaseOK242
windows-oldrelOK205
wasm-releaseOK137

Exports:%REM%buildclean_namecontains_IMconvert_udebuggerdrop_uensembleexpitexport_plotfind_dependenciesget_build_codeget_regex_time_unitsget_regex_unitsget_unitshas_internetheaderindexofinsightmaker_to_sfminstall_julia_envjulia_statuslength_IMlogisticlogitmacromodmodel_unitsnonnegativepulseramprboolrdistremround_IMsaveat_funcseasonalsigmoidsim_specssimulatesolversstepuunit_prefixesurl_to_IMuse_juliause_threadsxmile

Dependencies:askpassbase64encbitbit64bslibcachemclicliprcpp11crayoncrosstalkcurldata.tabledeSolveDiagrammeRdigestdplyrevaluatefarverfastmapfontawesomefsgenericsggplot2gluegtablehighrhmshtmltoolshtmlwidgetshttrigraphisobandjquerylibjsonliteJuliaConnectoRknitrlabelinglaterlatticelazyevallifecyclemagrittrMatrixmemoisemimeopensslotelpillarpkgconfigplotlyprettyunitsprogresspromisespurrrR6rappdirsRColorBrewerRcppreadrrlangrmarkdownrstudioapirvestS7sassscalesselectrstringistringrsystibbletidyrtidyselecttinytextzdbutf8vctrsviridisLitevisNetworkvroomwithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Create data frame of simulation resultsas.data.frame.sdbuildR_sim
Convert stock-and-flow model to data frameas.data.frame.sdbuildR_xmile
Create, modify or remove variablesbuild
Clean variable name(s)clean_name
Check if needle is in haystackcontains_IM
Convert unit in equationconvert_u
Debug stock-and-flow modeldebugger
Drop unit in equationdrop_u
Run ensemble simulationsensemble
Expit functionexpit
Save plot to a fileexport_plot
Find dependenciesfind_dependencies
Generate code to build stock-and-flow modelget_build_code
Get regular expressions for time units in Juliaget_regex_time_units
Get regular expressions for units in Juliaget_regex_units
View all standard unitsget_units
Check if user has internethas_internet
Modify header of stock-and-flow modelheader
Find index of needle in haystackindexof
Import Insight Maker modelinsightmaker_to_sfm
Install, update, or remove Julia environmentinstall_julia_env
Check status of Julia installation and environmentjulia_status
Length of vector or stringlength_IM
Logistic functionlogistic sigmoid
Logit functionlogit
Create, modify or remove a global variable or functionmacro
Create, modify or remove custom unitsmodel_units
Safely check whether x is less than zerononnegative
Plot timeseries of ensembleplot.sdbuildR_ensemble
Plot timeseries of simulationplot.sdbuildR_sim
Plot stock-and-flow diagramplot.sdbuildR_xmile
Print method for summary.sdbuildR_xmileprint.summary.sdbuildR_xmile
Create pulse functionpulse
Create ramp functionramp
Generate random logical valuerbool
Generate random number from custom distributionrdist
Remainder and modulus%REM% mod rem
Round Half-Up (as in Insight Maker)round_IM
Internal function to save data frame at specific timessaveat_func
Create a seasonal wave functionseasonal
Modify simulation specificationssim_specs
Simulate stock-and-flow modelsimulate
Check or translate between deSolve and Julia DifferentialEquations solverssolvers
Create step functionstep
Print overview of stock-and-flow modelsummary.sdbuildR_xmile
Specify unit in equationsu
Show unit prefixesunit_prefixes
Extract Insight Maker model from URLurl_to_IM
Start Julia and activate environmentuse_julia
Set up threaded ensemble simulationsuse_threads
Create a new stock-and-flow modelxmile