{
  "_id": "6a101bf6acfb0bcc41c87871",
  "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-05-22 09:01:14 UTC",
    "User": "root"
  },
  "Author": "Joe Ornstein [aut, cre, cph] (ORCID:\n<https://orcid.org/0000-0002-5704-2098>)",
  "Maintainer": "Joe Ornstein <jornstein@uga.edu>",
  "MD5sum": "b0dc10ebfe24c63beff98bd3114d6d82",
  "_user": "joeornstein",
  "_type": "src",
  "_file": "promptr_1.0.1.tar.gz",
  "_fileid": "637756215e58294eeccf3d0e08c588b050dc3f82c423ce5fe2aa1c8ee9284492",
  "_filesize": 258309,
  "_sha256": "637756215e58294eeccf3d0e08c588b050dc3f82c423ce5fe2aa1c8ee9284492",
  "_created": "2026-05-22T09:01:14.000Z",
  "_published": "2026-05-22T09:03:50.496Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 77348964198,
      "time": 121,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156793454"
    },
    {
      "job": 77348964161,
      "time": 125,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156794568"
    },
    {
      "job": 77348964223,
      "time": 106,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156788057"
    },
    {
      "job": 77348964097,
      "time": 85,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156781589"
    },
    {
      "job": 77348539581,
      "time": 161,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156754189"
    },
    {
      "job": 77348964163,
      "time": 103,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156787417"
    },
    {
      "job": 77348964212,
      "time": 73,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7156777643"
    },
    {
      "job": 77348964222,
      "time": 78,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7156779974"
    },
    {
      "job": 77348964221,
      "time": 62,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7156774629"
    }
  ],
  "_buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_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"
  },
  "_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",
    "description": "Political Scientist"
  },
  "_downloads": {
    "count": 174,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/promptr"
  },
  "_devurl": "https://github.com/joeornstein/promptr",
  "_searchresults": 11,
  "_rbuild": "4.6.0",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/promptr.html",
    "extra/readme.html",
    "extra/readme.md",
    "manual.pdf"
  ],
  "_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",
    "rappdirs",
    "rlang",
    "stringi",
    "stringr",
    "sys",
    "tibble",
    "tidyselect",
    "utf8",
    "vctrs",
    "withr"
  ],
  "_score": 4.062581984228164,
  "_indexed": true,
  "_nocasepkg": "promptr",
  "_universes": [
    "joeornstein"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-22T09:03:20.000Z",
      "distro": "noble",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "69e987c79247bf6840135d2e409d391edda621dee67df55f62e113f0a3302472",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "1.0.1",
      "date": "2026-05-22T09:03:26.000Z",
      "distro": "noble",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "15f4969dce3104f9f6213bed531ca38edc4e541ffe01085f13b68b6113813608",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-22T09:03:05.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "3c01df05570705474d2e3a86aa5151b0a3568d337bdd50c9be1c4b5042a59064",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "1.0.1",
      "date": "2026-05-22T09:02:46.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "a889fa38075652a97be3c60fe6db68780c29c5acb6b3904b2892d47eb5aec488",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "1.0.1",
      "date": "2026-05-22T09:03:11.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "8e4864069358b88b1e9f5bdec29e91550402d8615b39590f7bba4168d6f728b7",
      "status": "success",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-22T09:02:27.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "d528ea6f73725879be0f2d724c5e26756e768271ba070e58e049dc54d17039d3",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-22T09:02:37.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "647502960e5358ff637e76dccc637e90b3d5d11552aa044f9b5fd7e9585a31c7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "1.0.1",
      "date": "2026-05-22T09:02:19.000Z",
      "commit": "0ddedd146179a7a5df4e4e106eb5aef1f820670b",
      "fileid": "9328f090fe70d48b5c56ed16923b5776f5de850129c5c6701bccbbc6fccb9265",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/joeornstein/actions/runs/26278486274"
    }
  ]
}