Skip to content

ellmer

Chat with Large Language Models

v0.4.1 · May 7, 2026 · MIT + file LICENSE

Description

Chat with large language models from a range of providers including 'Claude' <https://claude.ai>, 'OpenAI' <https://chatgpt.com>, and more. Supports streaming, asynchronous calls, tool calling, and structured data extraction.

Downloads

CRAN

12.2K

Last 30 days

1078th

42.5K

Last 90 days

133.2K

Last year

Trend: -26.9% (30d vs prior 30d)

r2u CRAN

114

Last 30 days

846

Last 90 days

2.2K

Last year

Trend: -77.9% (30d vs prior 30d)

autoCRAN

15

Last 7 days

25

Last 30 days

7

All-time

autoCRAN-only: this name is served only by autoCRAN, so the count is exact.

conda-forge CRAN

59

Last 30 days

389

Last 90 days

2.2K

Last year

Trend: -75.2% (30d vs prior 30d)

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 11, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 9, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [55s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 8, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 7, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [91s/71s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional 
...[truncated]...
::test_files(...)
   4.       └─testthat:::test_files_parallel(...)
   5.         ├─withr (local) `<fn>`()
   6.         └─testthat:::queue_teardown(queue)
   7.           └─cli::cli_abort(...)
   8.             └─rlang::abort(...)
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 1, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 29, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [56s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Code

Structure

Lines of code

49,468

Files

349

Compiled share

0%

Has compiled src

No

Language breakdown

R 15,555 (31.4%)Tests 20,917 (42.3%)Docs 4,627 (9.4%)Vignettes 8,369 (16.9%)

API

Exported functions

107

Internal functions

337

Recent export changes

v0.4.1+4 AssistantPartialTurn, chat_lmstudio, models_lmstudio +1 more
v0.4.0+19 AssistantTurn, SystemTurn, TypeIgnore +16 more  −4 chat_azure, chat_bedrock, chat_cortex 1 more

Testing & CI

Has tests

Yes

Test-to-code ratio

1.34

testthat edition

3

CI present

No

CI type

[]

PR gated

No

Docs

Return-value doc rate

76%

\dontrun example ratio

60%

Roxygen coverage

100%

Has pkgdown

No

NEWS present

Yes

Health & Security signals

Informational signals; not verdicts.

on.exit coverage

5.9%

Unsafe pattern score

0

Dep constraint coverage

46.2%

Secret pattern count

0

Bundled 3rd-party code

2 items

Portability & License

Min R version

4.1

System requirements

C++ standard

License

MIT + file LICENSE

License flags

SPDX valid, OSI approved

History

Versions

9

First release

2025-01-09

Latest release

2026-05-07

Avg cadence

41 days

Cold removal rate

20%

Dep drift

7

LOC over versions

v0.1.0: 11,678 LOCv0.1.1: 13,670 LOCv0.2.0: 22,013 LOCv0.2.1: 22,557 LOCv0.3.0: 33,886 LOCv0.3.1: 34,167 LOCv0.3.2: 34,424 LOCv0.4.0: 46,430 LOCv0.4.1: 49,468 LOC

Per-file churn detail lives in the source pipeline: https://github.com/r-observatory/cran-code-metrics.

Reverse Dependencies (42)

depends

Dependency Network

Dependencies Reverse dependencies cli coro glue httr2 jsonlite later lifecycle promises R6 rlang (>= 1.1.0) S7 tibble vctrs quallmer ElicitationWizard GitAI PKbioanalysis PatientGenerator WMFM btw chattr chores epiviz fuzzylink gander kuzco mall mcptools +27 more reverse deps ellmer

Version History

10 tracked
updated 0.4.1 ← 0.4.0 diff May 7, 2026
new 0.4.0 Mar 10, 2026
updated 0.4.0 ← 0.3.2 diff Nov 14, 2025
updated 0.3.2 ← 0.3.1 diff Sep 3, 2025
updated 0.3.1 ← 0.3.0 diff Aug 23, 2025
updated 0.3.0 ← 0.2.1 diff Jul 24, 2025
updated 0.2.1 ← 0.2.0 diff Jun 2, 2025
updated 0.2.0 ← 0.1.1 diff May 17, 2025
updated 0.1.1 ← 0.1.0 diff Feb 6, 2025
new 0.1.0 Jan 8, 2025