{
  "_id": "6ad5cbfd4a34890ab4938b9f",
  "Package": "promptr",
  "Title": "Format and Complete Few-Shot LLM Prompts",
  "Version": "1.0.1",
  "Authors@R": "person(\"Joe\", \"Ornstein\", , \"jornstein@uga.edu\", role = c(\"aut\", \"cre\", \"cph\"),\ncomment = c(ORCID = \"0000-0002-5704-2098\"))",
  "Description": "Format and submit few-shot prompts to OpenAI's Large\nLanguage Models (LLMs). Designed to be particularly useful for\ntext classification problems in the social sciences. Methods\nare described in Ornstein, Blasingame, and Truscott (2024)\n<https://joeornstein.github.io/publications/ornstein-blasingame-truscott.pdf>.",
  "License": "MIT + file LICENSE",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.2",
  "LazyData": "true",
  "URL": "https://github.com/joeornstein/promptr",
  "BugReports": "https://github.com/joeornstein/promptr/issues",
  "Config/pak/sysreqs": "libicu-dev libssl-dev",
  "Repository": "https://joeornstein.r-universe.dev",
  "Date/Publication": "2026-04-22 13:24:18 UTC",
  "RemoteUrl": "https://github.com/joeornstein/promptr",
  "RemoteRef": "HEAD",
  "RemoteSha": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-10-19 07:46:50 UTC",
    "User": "root"
  },
  "Author": "Joe Ornstein [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-5704-2098>)",
  "Maintainer": "Joe Ornstein <jornstein@uga.edu>",
  "_user": "joeornstein",
  "_type": "src",
  "_file": "promptr_1.0.1.tar.gz",
  "_fileid": "https://r2.ropensci.org/0a07256cd07ce30c67867aa581c37fac37cde38b2cfbe44a0d616877717033b2",
  "_filesize": 262739,
  "_sha256": "0a07256cd07ce30c67867aa581c37fac37cde38b2cfbe44a0d616877717033b2",
  "_expires": "2027-01-27T07:51:23.000Z",
  "_created": "2026-10-19T07:46:50.000Z",
  "_published": "2026-10-19T07:51:25.151Z",
  "_buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_jobs": [
    {
      "job": 117947106293,
      "time": 97,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12171005870"
    },
    {
      "job": 117947106422,
      "time": 95,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169974607"
    },
    {
      "job": 117947106413,
      "time": 108,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12170317667"
    },
    {
      "job": 117947106307,
      "time": 91,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169999458"
    },
    {
      "job": 117946036196,
      "time": 175,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12170955606"
    },
    {
      "job": 117947106495,
      "time": 98,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12170512466"
    },
    {
      "job": 117947106406,
      "time": 60,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12171140201"
    },
    {
      "job": 117947106271,
      "time": 54,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12170930860"
    },
    {
      "job": 117947106287,
      "time": 58,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12169684623"
    }
  ],
  "_upstream": "https://github.com/joeornstein/promptr",
  "_commit": {
    "id": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
    "author": "Joe Ornstein <jornstein@uga.edu>",
    "committer": "Joe Ornstein <jornstein@uga.edu>",
    "message": "update gitignore\n",
    "time": 1776864258
  },
  "_maintainer": {
    "name": "Joe Ornstein",
    "email": "jornstein@uga.edu",
    "login": "joeornstein",
    "description": "Political Scientist",
    "uuid": 38436657,
    "orcid": "0000-0002-5704-2098"
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "dplyr",
      "role": "Imports"
    },
    {
      "package": "glue",
      "role": "Imports"
    },
    {
      "package": "httr2",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "stringr",
      "role": "Imports"
    }
  ],
  "_owner": "joeornstein",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-17",
      "n": 2
    }
  ],
  "_tags": [],
  "_stars": 21,
  "_contributors": [
    {
      "user": "joeornstein",
      "count": 43,
      "uuid": 38436657
    }
  ],
  "_userbio": {
    "uuid": 38436657,
    "type": "user",
    "name": "Joe Ornstein",
    "followers": 37,
    "description": "Political Scientist"
  },
  "_downloads": {
    "count": 250,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/promptr"
  },
  "_devurl": "https://github.com/joeornstein/promptr",
  "_searchresults": 12,
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/promptr.html",
    "extra/readme.html",
    "extra/readme.md",
    "LICENSE"
  ],
  "_homeurl": "https://github.com/joeornstein/promptr",
  "_realowner": "joeornstein",
  "_cranurl": true,
  "_releases": [
    {
      "version": "1.0.0",
      "date": "2024-08-26"
    }
  ],
  "_exports": [
    "complete_chat",
    "complete_prompt",
    "format_chat",
    "format_prompt",
    "openai_api_key"
  ],
  "_datasets": [
    {
      "name": "occupations",
      "title": "Occupations",
      "object": "occupations",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "baldesig",
        "hand_coded"
      ],
      "rows": 3948,
      "table": true,
      "tojson": true
    },
    {
      "name": "occupations_examples",
      "title": "Labelled Occupations",
      "object": "occupations_examples",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "text",
        "label"
      ],
      "rows": 9,
      "table": true,
      "tojson": true
    },
    {
      "name": "scotus_tweets",
      "title": "Tweets About The Supreme Court of the United States",
      "object": "scotus_tweets",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tweet_id",
        "text",
        "case",
        "expert1",
        "expert2",
        "expert3"
      ],
      "rows": 945,
      "table": true,
      "tojson": true
    },
    {
      "name": "scotus_tweets_examples",
      "title": "Labelled Example Tweets About The Supreme Court of the United States",
      "object": "scotus_tweets_examples",
      "class": [
        "tbl_df",
        "tbl",
        "data.frame"
      ],
      "fields": [
        "tweet_id",
        "text",
        "case",
        "label"
      ],
      "rows": 12,
      "table": true,
      "tojson": true
    }
  ],
  "_help": [
    {
      "page": "complete_chat",
      "title": "Complete an LLM Chat",
      "topics": [
        "complete_chat"
      ]
    },
    {
      "page": "complete_prompt",
      "title": "Complete an LLM Prompt",
      "topics": [
        "complete_prompt"
      ]
    },
    {
      "page": "format_chat",
      "title": "Format a Chat Prompt",
      "topics": [
        "format_chat"
      ]
    },
    {
      "page": "format_prompt",
      "title": "Format an LLM prompt",
      "topics": [
        "format_prompt"
      ]
    },
    {
      "page": "occupations",
      "title": "Occupations",
      "topics": [
        "occupations"
      ]
    },
    {
      "page": "occupations_examples",
      "title": "Labelled Occupations",
      "topics": [
        "occupations_examples"
      ]
    },
    {
      "page": "openai_api_key",
      "title": "Install an OPENAI API KEY in Your '.Renviron' File for Repeated Use",
      "topics": [
        "openai_api_key"
      ]
    },
    {
      "page": "scotus_tweets",
      "title": "Tweets About The Supreme Court of the United States",
      "topics": [
        "scotus_tweets"
      ]
    },
    {
      "page": "scotus_tweets_examples",
      "title": "Labelled Example Tweets About The Supreme Court of the United States",
      "topics": [
        "scotus_tweets_examples"
      ]
    }
  ],
  "_pkglogo": "https://github.com/joeornstein/promptr/raw/HEAD/man/figures/logo.png",
  "_readme": "https://github.com/joeornstein/promptr/raw/HEAD/README.md",
  "_rundeps": [
    "askpass",
    "cli",
    "curl",
    "dplyr",
    "generics",
    "glue",
    "httr2",
    "jsonlite",
    "lifecycle",
    "magrittr",
    "openssl",
    "pillar",
    "pkgconfig",
    "R6",
    "rlang",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 4.100370545117563,
  "_indexed": true,
  "_nocasepkg": "promptr",
  "_universes": [
    "joeornstein"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-10-19T07:48:40.000Z",
      "distro": "resolute",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/b1dfd05696a575ee2a5cf65adeb7a55ab023658defb2636311873ee877d8470a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-10-19T07:48:39.000Z",
      "distro": "resolute",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/1f74ecf7938dbbc890ac1ea4f1ce318354b10be8b0b1747e2eb1b7a8f7a776ae",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-10-19T07:50:56.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/0fbb680e6edd6730630987855f131858d7f4f77a934a8f4be4f42996a984e37d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-10-19T07:48:59.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/521ab34f02ce047b8e9cb9130fb3a291fa2d4c30de3fb4a1f2160b21abab46c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-10-19T07:48:51.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/74a9ec83737fd6166dc0edf06575dbb3001c22314459e36ea3a759b15f6f9bd5",
      "status": "success",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-10-19T07:48:01.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/c2b57e21e92b9de4de57ad812dee64289d79ca17fbcc713fc41d6eb1a94abb5f",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-10-19T07:47:56.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/78f1419cba8302ca231933c2c5a51afeebd2d358c35e2669b8301be61e4e3ba3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-10-19T07:47:58.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "https://r2.ropensci.org/b73651eece1c618d2123690d3bbbff4981b8425a3b9a8be89f4ef86bea9e68f0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/39217878794"
    }
  ]
}