{
  "_id": "6af23038f58eaab7992068a1",
  "Package": "decisions",
  "Version": "0.1.0.9000",
  "Title": "Typed Decisions from Decision Models",
  "Description": "Sends texts and images to decision models: hosted or local\nmodels that return a probability for each allowed answer to a\ntyped question (true or false, a choice, or an ordered score).\nSupports the web services of 'TypeSafe'\n<https://docs.typesafe.ai/introduction>, 'OpenAI'\n<https://platform.openai.com>, 'OpenRouter'\n<https://openrouter.ai> and 'Microsoft Foundry'\n<https://ai.azure.com>, which need an API (application\nprogramming interface) key and can charge for each call, and\nany local or hosted server that uses the 'SystemOne' request\nformat. Returns one row for each input in the 'tidymodels'\nstyle, saves and scores a complete decision setup, and applies\na calibrator fitted with 'probably'. Includes injury reports\nfrom the Severe Injury Reports of the U.S. Occupational Safety\nand Health Administration\n<https://www.osha.gov/severe-injury-reports>, food recall\nreports of the U.S. Food and Drug Administration\n<https://open.fda.gov/apis/food/enforcement/>, and simulated\ntextile images made with 'spc4sts', Bui and Apley (2021)\n<doi:10.1080/00224065.2019.1707730>.",
  "Authors@R": "c(\nperson(\"Fadel M.\", \"Megahed\", role = c(\"aut\", \"cre\"), email = \"fmegahed@miamioh.edu\",\ncomment = c(ORCID = \"0000-0003-2194-5110\")),\nperson(\"Ying-Ju\", \"Chen\", role = \"aut\", email = \"ychen4@udayton.edu\",\ncomment = c(ORCID = \"0000-0002-6444-6859\")))",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/fmegahed/decisions,\nhttps://fmegahed.github.io/decisions/",
  "BugReports": "https://github.com/fmegahed/decisions/issues",
  "Config/testthat/edition": "3",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "VignetteBuilder": "knitr, rmarkdown",
  "Config/roxygen2/version": "8.0.0",
  "LazyData": "true",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://fmegahed.r-universe.dev",
  "Date/Publication": "2026-11-09 19:16:33 UTC",
  "RemoteUrl": "https://github.com/fmegahed/decisions",
  "RemoteRef": "HEAD",
  "RemoteSha": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-09 20:38:59 UTC",
    "User": "root"
  },
  "Author": "Fadel M. Megahed [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2194-5110>),\nYing-Ju Chen [aut] (ORCID: <https://orcid.org/0000-0002-6444-6859>)",
  "Maintainer": "Fadel M. Megahed <fmegahed@miamioh.edu>",
  "_user": "fmegahed",
  "_type": "src",
  "_file": "decisions_0.1.0.9000.tar.gz",
  "_fileid": "https://r2.ropensci.org/5cbdd9fe5e63658b2fc78a0d91efbb65cf9eea0e7c90210df1196ba994a7c22b",
  "_filesize": 2059800,
  "_sha256": "5cbdd9fe5e63658b2fc78a0d91efbb65cf9eea0e7c90210df1196ba994a7c22b",
  "_expires": "2027-02-17T20:42:30.000Z",
  "_created": "2026-11-09T20:38:59.000Z",
  "_published": "2026-11-09T20:42:32.354Z",
  "_upstream": "https://github.com/fmegahed/decisions",
  "_status": "success",
  "_maintainer": {
    "name": "Fadel M. Megahed",
    "email": "fmegahed@miamioh.edu",
    "login": "fmegahed",
    "orcid": "0000-0003-2194-5110",
    "description": "Raymond E. Glos Professor in Business",
    "uuid": 26775884
  },
  "_jobs": [
    {
      "job": 129424520279,
      "time": 161,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13709501492"
    },
    {
      "job": 129424520553,
      "time": 138,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13708827241"
    },
    {
      "job": 129424520300,
      "time": 131,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13708622759"
    },
    {
      "job": 129424520139,
      "time": 151,
      "config": "macos-release-arm64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709605875"
    },
    {
      "job": 129422191868,
      "time": 246,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13709196146"
    },
    {
      "job": 129424520190,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13709675812"
    },
    {
      "job": 129424520050,
      "time": 106,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13709151628"
    },
    {
      "job": 129424520414,
      "time": 119,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "13708084170"
    },
    {
      "job": 129424520181,
      "time": 112,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13707504325"
    }
  ],
  "_buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725",
  "_commit": {
    "id": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
    "author": "fmegahed <fmegahed@miamioh.edu>",
    "committer": "fmegahed <fmegahed@miamioh.edu>",
    "message": "Record: refresh the copy with the CRAN release and the arXiv paper\n\n- data-raw/record.R leaves out the decisions about the Space, the Box\n  study, the paper and the video (D225 to D298, except D268, D273 and\n  D274, which are about Box in the package). The process events are the\n  events of M3 and two later events about the package (the start of M7\n  and the CRAN release). The calls README drops the sections of the\n  Space, the Box study and the video, and a log with no call of the\n  package is not copied.\n- The Home page of the record says that 0.1.0 is on CRAN and gives the\n  CRAN install. It names the paper with its final title and cites it on\n  arXiv; the contributions page cites it there too (D300).\n- New rows in the copy: D268, D273, D274, D299 and D300.\n\nCo-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>\n",
    "time": 1794251793
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.3.0",
      "role": "Depends"
    },
    {
      "package": "cli",
      "version": ">= 3.6.0",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "version": ">= 1.2.0",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "version": ">= 1.8.5",
      "role": "Imports"
    },
    {
      "package": "purrr",
      "version": ">= 1.0.0",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "version": ">= 1.3.0",
      "role": "Imports"
    },
    {
      "package": "S7",
      "version": ">= 0.2.0",
      "role": "Imports"
    },
    {
      "package": "stringi",
      "role": "Imports"
    },
    {
      "package": "tibble",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "magick",
      "role": "Suggests"
    },
    {
      "package": "mgcv",
      "role": "Suggests"
    },
    {
      "package": "probably",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    },
    {
      "package": "rsample",
      "role": "Suggests"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "yardstick",
      "role": "Suggests"
    }
  ],
  "_owner": "fmegahed",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-43",
      "n": 69
    },
    {
      "week": "2026-46",
      "n": 4
    }
  ],
  "_tags": [
    {
      "name": "v0.1.0",
      "date": "2026-10-24"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fmegahed",
      "count": 73,
      "uuid": 26775884
    }
  ],
  "_userbio": {
    "uuid": 26775884,
    "type": "user",
    "name": "Fadel Megahed",
    "followers": 28,
    "description": "Raymond E. Glos Professor in Business"
  },
  "_downloads": {
    "count": 16,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/decisions"
  },
  "_devurl": "https://github.com/fmegahed/decisions",
  "_pkgdown": "https://fmegahed.github.io/decisions/",
  "_searchresults": 18,
  "_rbuild": "4.6.2",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/decisions.html",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/fmegahed/decisions",
  "_realowner": "fmegahed",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2026-11-08"
    }
  ],
  "_exports": [
    "decide",
    "decider_foundry",
    "decider_openai",
    "decider_openrouter",
    "decider_systemone",
    "decider_typesafe",
    "decision_setup",
    "evaluate_once",
    "question_choice",
    "question_noul",
    "question_score",
    "read_setup",
    "score_setup",
    "write_setup"
  ],
  "_datasets": [
    {
      "name": "ohio_injuries",
      "title": "Severe injury reports from Ohio, 2025",
      "object": "ohio_injuries",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "id",
        "event_date",
        "city",
        "state",
        "final_narrative",
        "original_nature_title",
        "collapsed_nature_title",
        "original_event_title",
        "collapsed_event_title",
        "original_source_title",
        "collapsed_source_title"
      ],
      "rows": 464,
      "table": true,
      "tojson": true
    },
    {
      "name": "ohio_recalls",
      "title": "Food recalls of Ohio firms",
      "object": "ohio_recalls",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "recall_number",
        "event_id",
        "recall_initiation_date",
        "city",
        "state",
        "product_description",
        "reason_for_recall",
        "classification"
      ],
      "rows": 348,
      "table": true,
      "tojson": true
    },
    {
      "name": "rubric_answers",
      "title": "Sample answers for a rubric",
      "object": "rubric_answers",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "answer_id",
        "answer",
        "keeps_row",
        "na_answers",
        "error_text",
        "others_continue",
        "stops_all",
        "drops_row"
      ],
      "rows": 20,
      "table": true,
      "tojson": true
    },
    {
      "name": "textiles",
      "title": "Simulated textile images",
      "object": "textiles",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "file",
        "class",
        "defect_type",
        "role",
        "reference_rank"
      ],
      "rows": 50,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "decide",
      "title": "Ask a decision model typed questions",
      "topics": [
        "decide"
      ]
    },
    {
      "page": "decider_foundry",
      "title": "Use Microsoft-Decision-1 on Microsoft Foundry",
      "concept": [
        "deciders"
      ],
      "topics": [
        "decider_foundry"
      ]
    },
    {
      "page": "decider_openai",
      "title": "Use the OpenAI Decisions API",
      "concept": [
        "deciders"
      ],
      "topics": [
        "decider_openai"
      ]
    },
    {
      "page": "decider_openrouter",
      "title": "Use a decision model through OpenRouter",
      "concept": [
        "deciders"
      ],
      "topics": [
        "decider_openrouter"
      ]
    },
    {
      "page": "decider_systemone",
      "title": "Use any SystemOne server",
      "concept": [
        "deciders"
      ],
      "topics": [
        "decider_systemone"
      ]
    },
    {
      "page": "decider_typesafe",
      "title": "Use Jev through the TypeSafe API",
      "concept": [
        "deciders"
      ],
      "topics": [
        "decider_typesafe"
      ]
    },
    {
      "page": "decision_setup",
      "title": "Make a setup: one complete decision",
      "concept": [
        "setups"
      ],
      "topics": [
        "decision_setup"
      ]
    },
    {
      "page": "evaluate_once",
      "title": "Score the test rows one time",
      "concept": [
        "scoring"
      ],
      "topics": [
        "evaluate_once"
      ]
    },
    {
      "page": "ohio_injuries",
      "title": "Severe injury reports from Ohio, 2025",
      "topics": [
        "ohio_injuries"
      ]
    },
    {
      "page": "ohio_recalls",
      "title": "Food recalls of Ohio firms",
      "topics": [
        "ohio_recalls"
      ]
    },
    {
      "page": "question_choice",
      "title": "Ask a question with named choices",
      "concept": [
        "questions"
      ],
      "topics": [
        "question_choice"
      ]
    },
    {
      "page": "question_noul",
      "title": "Ask a question with true or false as the answer",
      "concept": [
        "questions"
      ],
      "topics": [
        "question_noul"
      ]
    },
    {
      "page": "question_score",
      "title": "Ask a question with ordered score levels",
      "concept": [
        "questions"
      ],
      "topics": [
        "question_score"
      ]
    },
    {
      "page": "read_setup",
      "title": "Read a setup file",
      "concept": [
        "setups"
      ],
      "topics": [
        "read_setup"
      ]
    },
    {
      "page": "rubric_answers",
      "title": "Sample answers for a rubric",
      "topics": [
        "rubric_answers"
      ]
    },
    {
      "page": "score_setup",
      "title": "Score a setup on labeled rows",
      "concept": [
        "scoring"
      ],
      "topics": [
        "score_setup"
      ]
    },
    {
      "page": "textiles",
      "title": "Simulated textile images",
      "topics": [
        "textiles"
      ]
    },
    {
      "page": "write_setup",
      "title": "Save a setup as one JSON file",
      "concept": [
        "setups"
      ],
      "topics": [
        "write_setup"
      ]
    }
  ],
  "_pkglogo": "https://github.com/fmegahed/decisions/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/fmegahed/decisions/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "curl",
    "glue",
    "httr2",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openssl",
    "pillar",
    "pkgconfig",
    "purrr",
    "R6",
    "rlang",
    "S7",
    "stringi",
    "sys",
    "tibble",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_vignettes": [
    {
      "source": "industrial-image-inspection.Rmd",
      "filename": "industrial-image-inspection.html",
      "title": "Case study: industrial image inspection",
      "engine": "knitr::rmarkdown",
      "headings": [
        "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"
      ],
      "created": "2026-10-24 05:43:12",
      "modified": "2026-11-09 19:16:33",
      "commits": 3
    },
    {
      "source": "choosing-a-model.Rmd",
      "filename": "choosing-a-model.html",
      "title": "Choosing a model",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Credentials",
        "Data",
        "Question",
        "Three models",
        "Performance",
        "Cost and time"
      ],
      "created": "2026-10-23 21:52:21",
      "modified": "2026-10-24 06:00:42",
      "commits": 4
    },
    {
      "source": "getting-started.Rmd",
      "filename": "getting-started.html",
      "title": "Getting started with text",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Data",
        "Decider",
        "Questions",
        "One input",
        "Many inputs",
        "Two questions",
        "Scores with known answers",
        "Long runs",
        "Agent skill"
      ],
      "created": "2026-10-23 21:21:21",
      "modified": "2026-10-24 06:00:42",
      "commits": 5
    },
    {
      "source": "grading.Rmd",
      "filename": "grading.html",
      "title": "Grading short answers with a rubric",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Rubric",
        "Sample answers",
        "Setup",
        "Thresholds",
        "Feedback",
        "Setup file",
        "Shiny app",
        "Privacy",
        "Credits"
      ],
      "created": "2026-10-23 21:21:21",
      "modified": "2026-10-24 06:00:42",
      "commits": 4
    },
    {
      "source": "images.Rmd",
      "filename": "images.html",
      "title": "Images",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Image inputs",
        "Data",
        "References",
        "Question",
        "Image arguments",
        "Crop function",
        "Two hosted models",
        "Clef-Flash",
        "Performance",
        "Cost and time",
        "Settings"
      ],
      "created": "2026-10-23 22:07:30",
      "modified": "2026-10-24 06:00:42",
      "commits": 5
    },
    {
      "source": "open-models.Rmd",
      "filename": "open-models.html",
      "title": "Open models on your own computer",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Overview",
        "Install",
        "Start",
        "Decider",
        "Data and questions",
        "Decisions",
        "Time",
        "Privacy"
      ],
      "created": "2026-10-23 21:21:21",
      "modified": "2026-10-24 06:00:42",
      "commits": 4
    }
  ],
  "_score": 5.033423755486949,
  "_indexed": true,
  "_nocasepkg": "decisions",
  "_universes": [
    "fmegahed"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:41:30.000Z",
      "distro": "resolute",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/1d2aaeaa200ca44cb6a3a205a4d07d607a5a72903fe36fe78c729625611eb9b7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:41:14.000Z",
      "distro": "resolute",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/9275d778faafff78962d93aa1008d653b909e5216ac5ebde3737b74101cc942a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:41:03.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/12595fa19964967848c5a312b0efd870207a225343709fd062fe7fbf0eb6bea0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.6.2",
      "os": "mac",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:41:15.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/5bc6cd0aa7336f6a603ce514a0a3c19b9e9341b22e3979951bc1db0c29d59a25",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:41:23.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/bf29d5d8acd50663eafecf8c264afb1d7a918333e19f65283c9fc54591939617",
      "status": "success",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:40:19.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/ec7f0b8629df077c389a7f4a4082b18c4e59157568e00d3286e25b2ca2905dcb",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:40:27.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/2d80610b9f59df0ea81f8f364cc718c1563db71ce4d9672fcb6237a45b8eb91b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0.9000",
      "date": "2026-11-09T20:40:28.000Z",
      "commit": "e614b6743b0659f9e2a2138f5ed549cb6e968c9f",
      "fileid": "https://r2.ropensci.org/b421553be5e95cd856a3264656e57043e66da1e408401b769867bb3ad9f280f8",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/fmegahed/actions/runs/42694327725"
    }
  ]
}