Package: decisions 0.1.0

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:
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
- ohio_injuries - Severe injury reports from Ohio, 2025
- ohio_recalls - Food recalls of Ohio firms
- rubric_answers - Sample answers for a rubric
- textiles - Simulated textile images
Last updated from:e3bba03b0e. Checks:6 OK. Indexed: yes.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel | OK | 159 | ||
| source / vignettes | OK | 221 | ||
| linux-release | OK | 156 | ||
| windows-devel | OK | 122 | ||
| windows-release | OK | 91 | ||
| wasm-release | OK | 121 |
Exports:decidedecider_foundrydecider_openaidecider_openrouterdecider_systemonedecider_typesafedecision_setupevaluate_oncequestion_choicequestion_noulquestion_scoreread_setupscore_setupwrite_setup
Dependencies:askpassclicurlgluehttr2jsonlitelifecyclemagrittropensslpillarpkgconfigpurrrR6rlangS7stringisystibbleutf8vctrswithr
Last update: 2026-11-08
Started: 2026-11-08
Last update: 2026-11-08
Started: 2026-11-08
Last update: 2026-11-08
Started: 2026-11-08
Last update: 2026-11-08
Started: 2026-11-08
Last update: 2026-11-08
Started: 2026-11-08
Last update: 2026-11-08
Started: 2026-11-08
Readme and manuals
Help Manual
| Help page | Topics |
|---|---|
| Ask a decision model typed questions | decide |
| Use Microsoft-Decision-1 on Microsoft Foundry | decider_foundry |
| Use the OpenAI Decisions API | decider_openai |
| Use a decision model through OpenRouter | decider_openrouter |
| Use any SystemOne server | decider_systemone |
| Use Jev through the TypeSafe API | decider_typesafe |
| Make a setup: one complete decision | decision_setup |
| Score the test rows one time | evaluate_once |
| Severe injury reports from Ohio, 2025 | ohio_injuries |
| Food recalls of Ohio firms | ohio_recalls |
| Ask a question with named choices | question_choice |
| Ask a question with true or false as the answer | question_noul |
| Ask a question with ordered score levels | question_score |
| Read a setup file | read_setup |
| Sample answers for a rubric | rubric_answers |
| Score a setup on labeled rows | score_setup |
| Simulated textile images | textiles |
| Save a setup as one JSON file | write_setup |
