Package: decisions 0.1.0

Fadel M. Megahed

decisions: Typed Decisions from Decision Models

Sends texts and images to decision models: hosted or local models that return a probability for each allowed answer to a typed question (true or false, a choice, or an ordered score). Supports the web services of 'TypeSafe' <https://docs.typesafe.ai/introduction>, 'OpenAI' <https://platform.openai.com>, 'OpenRouter' <https://openrouter.ai> and 'Microsoft Foundry' <https://ai.azure.com>, which need an API (application programming interface) key and can charge for each call, and any local or hosted server that uses the 'SystemOne' request format. Returns one row for each input in the 'tidymodels' style, saves and scores a complete decision setup, and applies a calibrator fitted with 'probably'. Includes injury reports from the Severe Injury Reports of the U.S. Occupational Safety and Health Administration <https://www.osha.gov/severe-injury-reports>, food recall reports of the U.S. Food and Drug Administration <https://open.fda.gov/apis/food/enforcement/>, and simulated textile images made with 'spc4sts', Bui and Apley (2021) <doi:10.1080/00224065.2019.1707730>.

Authors:Fadel M. Megahed [aut, cre], Ying-Ju Chen [aut]

decisions_0.1.0.tar.gz
decisions_0.1.0.zip(r-4.7-any)decisions_0.1.0.zip(r-4.6-any)
decisions_0.1.0.tar.gz(r-4.7-any)decisions_0.1.0.tar.gz(r-4.6-any)
decisions_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
DESCRIPTION |NEWS
card.svg |card.png
decisions/json (API)

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

Bug tracker:https://github.com/fmegahed/decisions/issues

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

Datasets:

On CRAN:

Conda:

3.71 score 17 scripts 14 exports 21 dependencies

Last updated from:e3bba03b0e. Checks:6 OK. Indexed: yes.

TargetResultTimeFilesSyslog
linux-develOK159
source / vignettesOK221
linux-releaseOK156
windows-develOK122
windows-releaseOK91
wasm-releaseOK121

Exports:decidedecider_foundrydecider_openaidecider_openrouterdecider_systemonedecider_typesafedecision_setupevaluate_oncequestion_choicequestion_noulquestion_scoreread_setupscore_setupwrite_setup

Dependencies:askpassclicurlgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangS7stringisystibbleutf8vctrswithr

Case study: industrial image inspection
Overview | Data | Licenses | Images | Rows | Question | Models | Setups | Wording | Candidates | Keep rule | Scores | Grid | Calibration | Folds | Test | Cost and time of the test | Cost and time | Image size | Reruns | References

Last update: 2026-11-08
Started: 2026-11-08

Choosing a model
Overview | Credentials | Data | Question | Three models | Performance | Cost and time

Last update: 2026-11-08
Started: 2026-11-08

Getting started with text
Overview | Data | Decider | Questions | One input | Many inputs | Two questions | Scores with known answers | Long runs | Agent skill

Last update: 2026-11-08
Started: 2026-11-08

Grading short answers with a rubric
Overview | Rubric | Sample answers | Setup | Thresholds | Feedback | Setup file | Shiny app | Privacy | Credits

Last update: 2026-11-08
Started: 2026-11-08

Images
Overview | Image inputs | Data | References | Question | Image arguments | Crop function | Two hosted models | Clef-Flash | Performance | Cost and time | Settings

Last update: 2026-11-08
Started: 2026-11-08

Open models on your own computer
Overview | Install | Start | Decider | Data and questions | Decisions | Time | Privacy

Last update: 2026-11-08
Started: 2026-11-08