Skip to content

btw

A Toolkit for Connecting R and Large Language Models

v1.2.1 · Mar 23, 2026 · MIT + file LICENSE

Description

A complete toolkit for connecting 'R' environments with Large Language Models (LLMs). Provides utilities for describing 'R' objects, package documentation, and workspace state in plain text formats optimized for LLM consumption. Supports multiple workflows: interactive copy-paste to external chat interfaces, programmatic tool registration with 'ellmer' chat clients, batteries-included chat applications via 'shinychat', and exposure to external coding agents through the Model Context Protocol. Project configuration files enable stable, repeatable conversations with project-specific context and preferred LLM settings.

Downloads

CRAN

1.2K

Last 30 days

3260th

3.7K

Last 90 days

8.3K

Last year

Trend: +6% (30d vs prior 30d)

r2u CRAN

176

Last 30 days

256

Last 90 days

314

Last year

Trend: +738.1% (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 8, 2026
ERROR r-devel-linux-x86_64-debian-gcc

package dependencies

Package required but not available: ‘skimr’

Package suggested but not available for checking: ‘diffviewer’

See section ‘The DESCRIPTION file’ in the ‘Writing R Extensions’
manual.
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 6, 2026
NOTE 12 OK · 1 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 5, 2026
NOTE r-devel-linux-x86_64-fedora-gcc

dependencies in R code

error: could not lock config file /data/gannet/ripley/.gitconfig: File exists
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 24, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 14, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [52s]
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]...
5.               \-testthat (local) FUN(X[[i]], ...)
   16.                 \-private$handle_error(msg, i)
   17.                   \-cli::cli_abort(...)
   18.                     \-rlang::abort(...)
  Execution halted
  Ran 8/8 deferred expressions
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Dependency Network

Dependencies Reverse dependencies brio cli clipr dplyr ellmer frontmatter fs jsonlite lifecycle mcptools pkgsearch rlang rmarkdown rstudioapi S7 +4 more dependencies btw

Version History

5 tracked
updated 1.2.1 ← 1.2.0 diff Mar 23, 2026
updated 1.2.0 ← 1.1.0 diff Mar 16, 2026
new 1.1.0 Mar 10, 2026
updated 1.1.0 ← 1.0.0 diff Dec 22, 2025
new 1.0.0 Nov 3, 2025