The hardware and bandwidth for this mirror is donated by METANET, the Webhosting and Full Service-Cloud Provider.
If you wish to report a bug, or if you are interested in having us mirror your free-software or open-source project, please feel free to contact us at mirror[@]metanet.ch.

LLMR: Interface for Large Language Model APIs in R

One interface to many large language model providers: a single configuration object and a single calling function serve chat and embedding models alike, so research code does not change when the provider does. The same calls scale to multi-model and multi-condition studies.

Version: 0.8.11
Depends: R (≥ 4.1.0)
Imports: httr2 (≥ 1.0.0), curl, purrr, dplyr, tidyr, rlang, memoise, future, future.apply, tibble, base64enc, mime, glue (≥ 1.6.0), cli (≥ 3.6.0), jsonlite, vctrs, digest, tidyselect
Suggests: testthat (≥ 3.0.0), roxygen2 (≥ 7.1.2), progressr, knitr, rmarkdown, ggplot2, jsonvalidate, stringi, kableExtra, withr
Published: 2026-07-24
DOI: 10.32614/CRAN.package.LLMR
Author: Ali Sanaei [aut, cre]
Maintainer: Ali Sanaei <sanaei at uchicago.edu>
BugReports: https://github.com/asanaei/LLMR/issues
License: MIT + file LICENSE
URL: https://github.com/asanaei/LLMR, https://asanaei.github.io/LLMR/
NeedsCompilation: no
Citation: LLMR citation info
Materials: README, NEWS
CRAN checks: LLMR results

Documentation:

Reference manual: LLMR.html , LLMR.pdf
Vignettes: JSON output vs. schema-validated output in LLMR (source, R code)
Simple chat with LLMR (source, R code)
Small experiment with LLMR (source, R code)
Interactive calls: tools, streaming, and logprobs (source, R code)
Presidential Speech Analysis with Embeddings (source, R code)
LLMR in 5 minutes (source, R code)
Reproducibility and cost: logging, replication, caching, batch jobs (source, R code)
Tidy pipelines and structured output (source, R code)
A Trolley Dilemma Experiment with LLMR (source, R code)

Downloads:

Package source: LLMR_0.8.11.tar.gz
Windows binaries: r-devel: LLMR_0.8.11.zip, r-release: LLMR_0.8.11.zip, r-oldrel: LLMR_0.8.11.zip
macOS binaries: r-release (arm64): LLMR_0.8.11.tgz, r-oldrel (arm64): LLMR_0.8.11.tgz, r-release (x86_64): LLMR_0.8.11.tgz, r-oldrel (x86_64): LLMR_0.8.11.tgz
Old sources: LLMR archive

Reverse dependencies:

Reverse imports: LLMRagent
Reverse suggests: LLMR.shiny

Linking:

Please use the canonical form https://CRAN.R-project.org/package=LLMR to link to this page.

These binaries (installable software) and packages are in development.
They may not be fully stable and should be used with caution. We make no claims about them.