Launch the dashboard from any R session with the package installed:
haulplan::run_haulplan_app()It is a plain Shiny app (no database, no server-side state), so it also deploys unchanged to shinyapps.io, Posit Connect or Shiny Server - see the Deployment section below.
Tab 1 - Queue Analyzer
Interactive front-end to finite_source_queue() /
queue_curve().
- Set shovels, back-cycle time, load time, payload and a production target.
- KPI cards show production, queue, shovel utilisation and match factor at the maximum fleet size of the sweep, plus the smallest fleet that reaches the target - the number planners actually need.
- The chart is the saturation curve: bars = production, line = queue time.
- The sweep table includes
marginal_tph, the tonnes bought by each successive truck.
Use it for: “how many trucks does this circuit need?”, sensitivity checks after a bench move, arguing about one more truck at the planning meeting.
Tab 2 - Fleet Deployment
Front-end to deploy_fleet().
- Runs on the bundled 5-route sample until you upload your own routes CSV.
- Required CSV columns:
route_id, n_shovels, cycle_min, load_min; optional:payload_t, min_trucks, max_trucks, priority_tph. - Outputs the allocation table, a production-by-route chart coloured by bunching efficiency, and the full greedy assignment log explaining why each truck went where it did.
Use it for: start-of-shift truck allocation, fleet-size business cases (sweep “Trucks available” and watch total production), degradation planning.
Tab 3 - KPI Explorer
Front-end to haul_kpis().
- Runs on the bundled one-shift cycle log until you upload your own.
- Required CSV columns:
truck_id, queue_min, load_min, travel_min, payload_t; optionalroute_idunlocks the per-route table and chart. - Cards: production, loads, queue share (with mean/p90), average cycle, tonnes per truck-hour. Charts: queue-time histogram and production by route coloured by queue share.
Use it for: end-of-shift reviews, weekly trend packs, spotting which route is quietly eating the fleet’s time.
Tab 4 - KPI Reference
The kpi_reference() dictionary rendered as a table:
formula, unit, healthy range and interpretation for every KPI. Keep it
open during reviews so the whole room argues from the same
definitions.
Exporting cycle logs from an FMS
Most fleet-management systems export cycle records with timestamps.
Map them as: queue_min = arrive-at-loader → begin-loading;
load_min = begin-loading → depart-loader;
travel_min = everything else in the cycle;
payload_t from the payload monitor. One row per completed
cycle.
Deployment options
| Target | How |
|---|---|
| Analyst laptop | run_haulplan_app() |
| shinyapps.io | rsconnect::deployApp(system.file("shinyapp", package = "haulplan")) |
| Posit Connect / Shiny Server | Point the server at inst/shinyapp/; ensure
haulplan is installed in the server library |
| Docker |
rocker/shiny base image +
remotes::install_github("imanojkumar/haulplan")
|
The app has no secrets and no persistent storage; uploaded CSVs live only in the session.