{
  "_id": "6a19ec321d7bb097a09c75a2",
  "Package": "rtiktoken",
  "Title": "A Byte-Pair-Encoding (BPE) Tokenizer for OpenAI's Large Language\nModels",
  "Version": "0.11.0-1",
  "Authors@R": "c(\nperson(\"David\", \"Zimmermann-Kollenda\", , \"david_j_zimmermann@hotmail.com\", role = c(\"aut\", \"cre\")),\nperson(\"Roger Zurawicki\", role = \"aut\", comment = \"tiktoken-rs Rust library\"),\nperson(\"Authors of the dependent Rust crates\", role = \"aut\", comment = \"see AUTHORS file\")\n)",
  "Description": "A thin wrapper around the tiktoken-rs crate, allowing to\nencode text into Byte-Pair-Encoding (BPE) tokens and decode\ntokens back to text. This is useful to understand how Large\nLanguage Models (LLMs) perceive text.",
  "License": "MIT + file LICENSE",
  "URL": "https://davzim.github.io/rtiktoken/,\nhttps://github.com/DavZim/rtiktoken/",
  "BugReports": "https://github.com/DavZim/rtiktoken/issues",
  "SystemRequirements": "Cargo (Rust's package manager), rustc >= 1.65.0",
  "Encoding": "UTF-8",
  "Roxygen": "list(markdown = TRUE)",
  "RoxygenNote": "7.3.3",
  "Config/rextendr/version": "0.5.0",
  "Config/testthat/edition": "3",
  "Config/rtiktoken/MSRV": "1.65.0",
  "Config/pak/sysreqs": "libclang-dev",
  "Repository": "https://davzim.r-universe.dev",
  "Date/Publication": "2026-04-23 14:06:54 UTC",
  "RemoteUrl": "https://github.com/davzim/rtiktoken",
  "RemoteRef": "HEAD",
  "RemoteSha": "52e7f16a924bdfa255f02670b73452b8af422dcd",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-05-29 19:33:35 UTC",
    "User": "root"
  },
  "Author": "David Zimmermann-Kollenda [aut, cre],\nRoger Zurawicki [aut] (tiktoken-rs Rust library),\nAuthors of the dependent Rust crates [aut] (see AUTHORS file)",
  "Maintainer": "David Zimmermann-Kollenda <david_j_zimmermann@hotmail.com>",
  "MD5sum": "07f7220d31a0816573a283cfee665e33",
  "_user": "davzim",
  "_type": "src",
  "_file": "rtiktoken_0.11.0-1.tar.gz",
  "_fileid": "06328cfd51900c15962811b40ec38e848d035f41973bd2b267aae146c1e42376",
  "_filesize": 4273566,
  "_sha256": "06328cfd51900c15962811b40ec38e848d035f41973bd2b267aae146c1e42376",
  "_created": "2026-05-29T19:33:35.000Z",
  "_published": "2026-05-29T19:42:42.406Z",
  "_distro": "noble",
  "_jobs": [
    {
      "job": 78573209911,
      "time": 160,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7299446939"
    },
    {
      "job": 78573210015,
      "time": 136,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7299439495"
    },
    {
      "job": 78573209943,
      "time": 149,
      "config": "linux-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299443261"
    },
    {
      "job": 78573209976,
      "time": 149,
      "config": "linux-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299443688"
    },
    {
      "job": 78573210007,
      "time": 116,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7299477564"
    },
    {
      "job": 78573209942,
      "time": 246,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7299549353"
    },
    {
      "job": 78573209944,
      "time": 123,
      "config": "macos-release-arm64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299450994"
    },
    {
      "job": 78573209921,
      "time": 309,
      "config": "macos-release-x86_64",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299534262"
    },
    {
      "job": 78572677155,
      "time": 199,
      "config": "source",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299395192"
    },
    {
      "job": 78573209936,
      "time": 153,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "FAIL",
      "artifact": ""
    },
    {
      "job": 78573209948,
      "time": 177,
      "config": "windows-devel",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "7299451748"
    },
    {
      "job": 78573209914,
      "time": 174,
      "config": "windows-oldrel",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "7299451245"
    },
    {
      "job": 78573209941,
      "time": 169,
      "config": "windows-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "7299449671"
    }
  ],
  "_buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974",
  "_status": "success",
  "_host": "GitHub-Actions",
  "_upstream": "https://github.com/davzim/rtiktoken",
  "_commit": {
    "id": "52e7f16a924bdfa255f02670b73452b8af422dcd",
    "author": "DavZim <david-zimmermann@hotmail.de>",
    "committer": "DavZim <david-zimmermann@hotmail.de>",
    "message": "update Readme\n",
    "time": 1776953214
  },
  "_maintainer": {
    "name": "David Zimmermann-Kollenda",
    "email": "david_j_zimmermann@hotmail.com"
  },
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.2",
      "role": "Depends"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    }
  ],
  "_owner": "davzim",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-15",
      "n": 2
    },
    {
      "week": "2026-17",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "bpe",
    "openai",
    "rust",
    "tokenization",
    "cargo"
  ],
  "_stars": 14,
  "_contributors": [
    {
      "user": "davzim",
      "count": 27,
      "uuid": 15910496
    },
    {
      "user": "josiahparry",
      "count": 1,
      "uuid": 13534508
    }
  ],
  "_userbio": {
    "uuid": 15910496,
    "type": "user",
    "name": "DavZim"
  },
  "_downloads": {
    "count": 156,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rtiktoken"
  },
  "_devurl": "https://github.com/davzim/rtiktoken",
  "_pkgdown": "https://davzim.github.io/rtiktoken/",
  "_searchresults": 7,
  "_cargo": true,
  "_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/readme.html",
    "extra/readme.md",
    "extra/rtiktoken.html",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/davzim/rtiktoken",
  "_realowner": "davzim",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.0.6",
      "date": "2024-11-06"
    },
    {
      "version": "0.0.7",
      "date": "2025-04-14"
    }
  ],
  "_exports": [
    "decode_tokens",
    "get_token_count",
    "get_tokens",
    "model_to_tokenizer"
  ],
  "_help": [
    {
      "page": "decode_tokens",
      "title": "Decodes tokens back to text",
      "topics": [
        "decode_tokens"
      ]
    },
    {
      "page": "get_token_count",
      "title": "Returns the number of tokens in a text",
      "topics": [
        "get_token_count"
      ]
    },
    {
      "page": "get_tokens",
      "title": "Converts text to tokens",
      "topics": [
        "get_tokens"
      ]
    },
    {
      "page": "model_to_tokenizer",
      "title": "Gets the name of the tokenizer used by a model",
      "topics": [
        "model_to_tokenizer"
      ]
    }
  ],
  "_readme": "https://github.com/davzim/rtiktoken/raw/HEAD/README.md",
  "_rundeps": [],
  "_score": 4.146128035678238,
  "_indexed": true,
  "_nocasepkg": "rtiktoken",
  "_universes": [
    "davzim"
  ],
  "_binaries": [
    {
      "r": "4.5.1",
      "os": "wasm",
      "version": "0.11.0",
      "date": "2026-04-10T18:50:41.000Z",
      "arch": "emscripten",
      "commit": "c3615d881c9419f61c0b65a0a3039153ed4d7edb",
      "fileid": "f67b034be24e4cae10f991b380f7b8f8db084eb2716e300467ba3b4ead2132a2",
      "status": "success",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/24258656321"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:36:20.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "9d9dff7216f1a84e5a05116cc0ad240b8dc2e474c1781deac879df63fec46215",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:36:05.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "caeb79a57c02cfbc35eac232126905e0934b5bcf4009ab2a0e73c884523c6da4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:36:09.000Z",
      "distro": "noble",
      "arch": "aarch64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "792f80b33a5192df218e1f0ecd525480ec266135ea6bc99b365d10ba7b426702",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.6.0",
      "os": "linux",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:36:12.000Z",
      "distro": "noble",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "5d83f66d22c4c3c3758ece6781bd6518f7d9fd3da7ee9c06e2a8bd0d1a26ead9",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:37:49.000Z",
      "arch": "aarch64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "d72e52a9624bf52785546688625adf27e0e77e2c993b7c98a055b609e5ffd713",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:41:01.000Z",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "16417391d87b631f6cdb89465f42bcbf920eac6910c03235803554d9e8a766fa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:36:30.000Z",
      "arch": "aarch64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "f0bf0f7d534f2a5ca6e866f85b5abfcd2aa483ee1fadcc081fc24e2683760405",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.6.0",
      "os": "mac",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:39:43.000Z",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "b237aa677b1649152165e9fdbc9261973fd3725ca9cc0137479aba4d22cad7c4",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:35:24.000Z",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "222d1a100d07b98735f9daf966fc8ad28d51c68165df663946be386dffbbf761",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:35:18.000Z",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "5485ca77c527fcbb47ab20f12c012bba92eeb1bd10dd710ba026b8d105fe652b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    },
    {
      "r": "4.6.0",
      "os": "win",
      "version": "0.11.0-1",
      "date": "2026-05-29T19:35:14.000Z",
      "arch": "x86_64",
      "commit": "52e7f16a924bdfa255f02670b73452b8af422dcd",
      "fileid": "ec58e60fc1890288a64015e34c5fc830b969fa3e53f2fad1b1107230b06a267a",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/26657873974"
    }
  ]
}