flux is a modular R ecosystem for simulation modeling of probabilistic dynamic systems in irregular time.
This super-repo coordinates the package stack, ecosystem-level testing, and cross-repo releases.
flux v2.1.0 hardens decision and action handling across the ecosystem, with clearer pending-action behavior, fail-fast callbacks, consistent cohort run identity, reproducible seeding, and stricter model-clock and parameter contracts. It also adds grouped decision points, allowing related decisions to share one policy consultation while their staged actions retain independent timing.
See the v2.1.0 release announcement, Tutorial 03 for decision/action lifecycles and grouped decisions, or Tutorial 01 for the engine and parameter draws.
The flux meta-package currently installs the latest source versions of the
core ecosystem packages from GitHub:
install.packages("remotes")
remotes::install_github("jarrod-dalton/flux")fluxCore is also available independently as a stable release from
CRAN:
install.packages("fluxCore")This meta-package installs:
fluxCorefluxPreparefluxForecastfluxValidationfluxOrchestrate
Reference/demo packages remain separate from meta-package installation:
fluxASCVDfluxModelTemplate
- Canonical tutorials live in
tutorials/ - Beginner entry point:
tutorials/00_start_here.md
- Event-driven architecture with explicit state transitions
- Irregular-time workflows for realistic longitudinal simulation
- Separation of concerns across preparation, simulation, forecasting, validation, and orchestration
- Reproducible, testable package ecosystem with shared contracts
- Release orchestration script:
scripts/release/release_ecosystem.sh - Cross-package integration test harness:
tests_ecosystem/ - Shared docs/notes for the ecosystem:
docs/ - Git submodules for package repos (under
subrepos/):fluxCorefluxPreparefluxForecastfluxValidationfluxOrchestratefluxModelTemplate
fluxCore: simulation engine and entity/state/event contractsfluxPrepare: train/test/validation data preparation pipelinesfluxForecast: simulation execution wrappers and summary estimatorsfluxValidation: apples-to-apples prediction vs observed evaluationfluxOrchestrate: multi-process event arbitration over shared timelinesfluxASCVD: concrete reference model packagefluxModelTemplate: scaffold for new flux-compatible model packages
git clone --recurse-submodules <this-repo-url>If already cloned without submodules:
git submodule update --init --recursivemake ecosystem-tier1
make ecosystem-tier2
make ecosystem-tier3
make ecosystem-all
make release-dry- Release line:
v2.1.0 - See the GitHub releases page for full history.
- Bookdown scaffold for long-form ecosystem documentation lives in
docs/work_in_progress/book/.
