{
  "_id": "6af0e082ef600c02c4069e5a",
  "Package": "decisions",
  "Version": "0.1.0",
  "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",
  "VignetteBuilder": "knitr, rmarkdown",
  "Config/roxygen2/version": "8.0.0",
  "LazyData": "true",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-11-08 20:46:56 UTC",
    "User": "root"
  },
  "Author": "Fadel M. Megahed [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-2194-5110>), Ying-Ju Chen [aut]\n(ORCID: <https://orcid.org/0000-0002-6444-6859>)",
  "Maintainer": "Fadel M. Megahed <fmegahed@miamioh.edu>",
  "Repository": "https://cran.r-universe.dev",
  "Date/Publication": "2026-11-08 19:51:24 UTC",
  "RemoteUrl": "https://github.com/cran/decisions",
  "RemoteRef": "HEAD",
  "RemoteSha": "e3bba03b0e91621468205a134b5b6e6141872cba",
  "_user": "cran",
  "_type": "src",
  "_file": "decisions_0.1.0.tar.gz",
  "_fileid": "https://r2.ropensci.org/4d915778fb30dbd56923294a1417113b84c7222d8c730a5f4c1e8b7c5db6ed08",
  "_filesize": 2061632,
  "_sha256": "4d915778fb30dbd56923294a1417113b84c7222d8c730a5f4c1e8b7c5db6ed08",
  "_expires": "2027-02-16T20:50:08.000Z",
  "_created": "2026-11-08T20:46:56.000Z",
  "_published": "2026-11-08T20:50:10.720Z",
  "_upstream": "https://github.com/cran/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": 128856973735,
      "time": 159,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13633742310"
    },
    {
      "job": 128856973749,
      "time": 156,
      "config": "linux-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13633423914"
    },
    {
      "job": 128856017361,
      "time": 221,
      "config": "source",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13634190468"
    },
    {
      "job": 128856973655,
      "time": 121,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "13633872028"
    },
    {
      "job": 128856973651,
      "time": 122,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "13633299824"
    },
    {
      "job": 128856973759,
      "time": 91,
      "config": "windows-release-x86_64",
      "r": "4.6.2",
      "check": "OK",
      "artifact": "13633792122"
    }
  ],
  "_buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248",
  "_commit": {
    "id": "e3bba03b0e91621468205a134b5b6e6141872cba",
    "author": "Fadel M. Megahed <fmegahed@miamioh.edu>",
    "committer": "cran-robot <csardi.gabor+cran@gmail.com>",
    "message": "version 0.1.0\n",
    "time": 1794167484
  },
  "_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": "cran",
  "_selfowned": false,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-45",
      "n": 1
    }
  ],
  "_tags": [
    {
      "name": "0.1.0",
      "date": "2026-11-08"
    }
  ],
  "_stars": 0,
  "_contributors": [
    {
      "user": "fmegahed",
      "count": 1,
      "uuid": 26775884
    }
  ],
  "_userbio": {
    "uuid": 6899542,
    "type": "organization",
    "name": "cran",
    "followers": 636,
    "description": "Unofficial read-only mirror of all CRAN R packages"
  },
  "_downloads": {
    "count": 0,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/decisions"
  },
  "_devurl": "https://github.com/fmegahed/decisions",
  "_pkgdown": "https://fmegahed.github.io/decisions/",
  "_searchresults": 17,
  "_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"
  ],
  "_cranurl": false,
  "_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/cran/decisions/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/cran/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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    },
    {
      "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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    },
    {
      "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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    },
    {
      "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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    },
    {
      "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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    },
    {
      "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-11-08 19:51:24",
      "modified": "2026-11-08 19:51:24",
      "commits": 1
    }
  ],
  "_score": 3.7075701760979363,
  "_indexed": true,
  "_nocasepkg": "decisions",
  "_universes": [
    "cran",
    "fmegahed"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-08T20:49:12.000Z",
      "distro": "resolute",
      "commit": "e3bba03b0e91621468205a134b5b6e6141872cba",
      "fileid": "https://r2.ropensci.org/a15356b21375e2bd539fc7e9fe4ba7f46e6f011acb96e78497546073419673f7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248"
    },
    {
      "r": "4.6.2",
      "os": "linux",
      "version": "0.1.0",
      "date": "2026-11-08T20:49:13.000Z",
      "distro": "resolute",
      "commit": "e3bba03b0e91621468205a134b5b6e6141872cba",
      "fileid": "https://r2.ropensci.org/fba2ede30cfb2791c17d8ad9cba44533ce0bb38e412ac5f640aa858940ac728c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.1.0",
      "date": "2026-11-08T20:49:16.000Z",
      "commit": "e3bba03b0e91621468205a134b5b6e6141872cba",
      "fileid": "https://r2.ropensci.org/9473bdb5bec71b5e95bab8c10961fb22058bfae4e26201078e5abaac91049f64",
      "status": "success",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-08T20:48:27.000Z",
      "commit": "e3bba03b0e91621468205a134b5b6e6141872cba",
      "fileid": "https://r2.ropensci.org/51875761bcc2ec359aefcdab8d9717b46d35390ada91e2f9b2b6298a69d9c42e",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248"
    },
    {
      "r": "4.6.2",
      "os": "win",
      "version": "0.1.0",
      "date": "2026-11-08T20:48:09.000Z",
      "commit": "e3bba03b0e91621468205a134b5b6e6141872cba",
      "fileid": "https://r2.ropensci.org/28b2a5b0197515c7bb3a6b5e3acdcefa0df144f7017f00e364b4ddacd02d3d67",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/cran/actions/runs/42521547248"
    }
  ]
}