RAM: Shiny app + R package for resource allocation modeling

software
blog
show-and-tell
A two-mode Shiny interface (builder + solver) for resource allocation modeling with lpSolve, sensitivity, and friendly exports.
Author

PAS-AGRO-PAS

Published

Dec 2025

We just shared a quick show-and-tell of ram, our Shiny app + R package that helps build and solve resource allocation models—handy for agro-pastoral planning scenarios.

What it is

  • Two UI modes: a builder to define resources and activities, and solve to run the LP, inspect sensitivity, and view plots/exports.
  • Powered by lpSolve with sensitivity analysis; tables are CSV/XLSX-friendly and keep column alignment.
  • Ships with example data by default; extra scenarios live in the package vignettes.

Try it

remotes::install_github("PAS-AGRO-PAS/ram")
ram::run_app(mode = "solve")
ram::run_app(mode = "builder")

Highlights

  • Dynamic theming via bslib.
  • Inline table edits flow straight into the solver; solver reports are downloadable on failure.
  • “Open in Solver” sends your builder tables into solve mode in one click.

Feedback wanted

  • UI/UX rough spots you notice?
  • Scenarios you want bundled as examples?
  • Solver output/validation improvements that would help your workflows?