{
  "_id": "6ae48d74327abcdf86868811",
  "Package": "rtiktoken",
  "Title": "A Byte-Pair-Encoding (BPE) Tokenizer for OpenAI's Large Language\nModels",
  "Version": "0.11.0.3",
  "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-08-31 12:07:54 UTC",
  "RemoteUrl": "https://github.com/davzim/rtiktoken",
  "RemoteRef": "HEAD",
  "RemoteSha": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
  "NeedsCompilation": "yes",
  "Packaged": {
    "Date": "2026-10-30 12:20:41 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>",
  "_user": "davzim",
  "_type": "src",
  "_file": "rtiktoken_0.11.0.3.tar.gz",
  "_fileid": "https://r2.ropensci.org/0ab4b93f3e8da6f2d9a00cb9c97f346746885b8cf9587c937bc5e0b2b446766f",
  "_filesize": 4274251,
  "_sha256": "0ab4b93f3e8da6f2d9a00cb9c97f346746885b8cf9587c937bc5e0b2b446766f",
  "_expires": "2027-02-07T12:28:34.000Z",
  "_created": "2026-10-30T12:20:41.000Z",
  "_published": "2026-10-30T12:28:36.293Z",
  "_upstream": "https://github.com/davzim/rtiktoken",
  "_status": "success",
  "_maintainer": {
    "name": "David Zimmermann-Kollenda",
    "email": "david_j_zimmermann@hotmail.com"
  },
  "_jobs": [
    {
      "job": 124059199470,
      "time": 112,
      "config": "linux-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12975639248"
    },
    {
      "job": 124059199415,
      "time": 125,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12976387523"
    },
    {
      "job": 124059199670,
      "time": 142,
      "config": "linux-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12975134912"
    },
    {
      "job": 124059199450,
      "time": 168,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12976292938"
    },
    {
      "job": 124059199591,
      "time": 132,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12976282845"
    },
    {
      "job": 124059199704,
      "time": 338,
      "config": "macos-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12976502602"
    },
    {
      "job": 124059199499,
      "time": 216,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12975918640"
    },
    {
      "job": 124059199507,
      "time": 330,
      "config": "macos-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12977025018"
    },
    {
      "job": 124057860771,
      "time": 188,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12975468448"
    },
    {
      "job": 124059199275,
      "time": 114,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "12975548535"
    },
    {
      "job": 124059199682,
      "time": 412,
      "config": "windows-devel-arm64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12976656996"
    },
    {
      "job": 124059199568,
      "time": 181,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "12975658380"
    },
    {
      "job": 124059199585,
      "time": 162,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "12976012590"
    },
    {
      "job": 124059199756,
      "time": 407,
      "config": "windows-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12976163888"
    },
    {
      "job": 124059199367,
      "time": 143,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "12976835426"
    }
  ],
  "_buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949",
  "_commit": {
    "id": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
    "author": "DavZim <david-zimmermann@hotmail.de>",
    "committer": "DavZim <david-zimmermann@hotmail.de>",
    "message": "submit to CRAN\n",
    "time": 1788178074
  },
  "_distro": "resolute",
  "_host": "GitHub-Actions",
  "_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
    },
    {
      "week": "2026-34",
      "n": 4
    },
    {
      "week": "2026-36",
      "n": 2
    }
  ],
  "_tags": [],
  "_topics": [
    "bpe",
    "openai",
    "rust",
    "tokenization",
    "cargo"
  ],
  "_stars": 14,
  "_contributors": [
    {
      "user": "davzim",
      "count": 33,
      "uuid": 15910496
    },
    {
      "user": "josiahparry",
      "count": 1,
      "uuid": 13534508
    }
  ],
  "_userbio": {
    "uuid": 15910496,
    "type": "user",
    "name": "DavZim",
    "followers": 72
  },
  "_downloads": {
    "count": 243,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/rtiktoken"
  },
  "_devurl": "https://github.com/davzim/rtiktoken",
  "_pkgdown": "https://davzim.github.io/rtiktoken/",
  "_searchresults": 9,
  "_cargo": true,
  "_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/readme.html",
    "extra/readme.md",
    "extra/rtiktoken.html",
    "LICENSE"
  ],
  "_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"
    },
    {
      "version": "0.11.0.2",
      "date": "2026-08-21"
    },
    {
      "version": "0.11.0.3",
      "date": "2026-09-08"
    }
  ],
  "_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.447158031342219,
  "_indexed": true,
  "_nocasepkg": "rtiktoken",
  "_universes": [
    "davzim"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:48.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/37ab06b6fa193176cfd0d4cf6b98c7fa7a558501efea4dcf4bdb64868df02dd5",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:59.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/1d8bc6b2eeded5ca2c2feafed98c11cf723b7cacb1fa10deee3be57847028960",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:23:22.000Z",
      "distro": "resolute",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/f6c21c9baff4b9c6596ad68fd46f3b626031258723cefcb0b6ec6f0526a7fc7c",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:23:36.000Z",
      "distro": "resolute",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/7602173e9fad9c0eb71cd551de21946679db2e339c34a1bafc92a2eb159666f2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:51.000Z",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/77cf32ae59f4cb13a67da3eed39e133b9a992ba94f4bae3fc3cec6e28efa1720",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:25:04.000Z",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/64d115653aed8e867b352d1c4e276aa3713ce0c12ffab7a353f8b9415c76689d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:23:26.000Z",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/af69bb286e27c166df261581d82cdb6bcc28a04ab5cfe3435da428213800244d",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:24:57.000Z",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/9503096f005fa00021801843e0ac2807cc008e29c0fd0252ad26cbec10f863d2",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:52.000Z",
      "arch": "emscripten",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/e717c0731fcb9ccfb42265c2d07eaa1405207c3e1bdf9a71d63bfb63bc627c02",
      "status": "success",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:26:36.000Z",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/3036f5b58b913f1bcc585d874e3e7ff21146c647859e12821858e51c4f079f43",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:17.000Z",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/7daf498723fb45ddfb45162b2dc57799461df19729f5bc1d0e434428f5bd112b",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:23.000Z",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/6ae388217dd1e101c6feb29ba880f009f8422818820ed37c79247685c6ece2e0",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:26:17.000Z",
      "arch": "aarch64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/7faf14ba63cb71f0e55cbd5f1bcd5b3c98a50ef4fee6fec6cf1376c16262fe94",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "0.11.0.3",
      "date": "2026-10-30T12:22:12.000Z",
      "arch": "x86_64",
      "commit": "73ffc2d6f3a7f3a9f0855bdf01555c853c887247",
      "fileid": "https://r2.ropensci.org/6b38ce708b8668fd783e6d54f6cca0e70748f229ea2bb4edd7d0ae0c7b8f5445",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/davzim/actions/runs/41054268949"
    }
  ]
}