rapsimng.decide provides a high-level interface for analysing APSIM Next Generation simulation outputs through structured decision workflows.
The package coordinates domain-specific decision modules (e.g. cultivar suitability, experiment design) and returns standardised, reproducible decision reports.
Currently on Github only. Install with:
remotes::install_github('byzheng/rapsimng.decide.cultivar')Crop modelling often involves multiple steps:
This package focuses on Step 2 and 3 by providing a unified entry point for decision analysis.
The package sits within a layered design:
rapsimng
Handles APSIM file manipulation and simulation
rapsimng.decide.*
Implements domain-specific decision logic
(e.g. cultivar, experiment design)
rapsimng.decide
✅ Coordinates decision packages
✅ Standardises outputs
✅ Provides a consistent user interface
agrillm
Interprets user intent and explains results
This package does not define decisions.
It coordinates how decisions are evaluated and reported.
report <- evaluate_decision(
data,
decision = "cultivar",
context = list(...),
criteria = list(...)
)All decisions return a consistent structure:
This structure is designed for:
qmd)agrillm)New decision types can be added by creating packages such as:
rapsimng.decide.cultivarrapsimng.decide.experimentEach package:
rapsimng.decide will automatically integrate them through its interface.