Package: btw 1.1.0.9000

Garrick Aden-Buie

btw: A Toolkit for Connecting R and Large Language Models

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.

Authors:Garrick Aden-Buie [aut, cre], Simon Couch [aut], Joe Cheng [aut], Posit Software, PBC [cph, fnd], Google [cph], Microsoft [cph], Jamie Perkins [cph]

btw_1.1.0.9000.tar.gz
btw_1.1.0.9000.zip(r-4.6)btw_1.1.0.9000.zip(r-4.5)btw_1.1.0.9000.zip(r-4.4)
btw_1.1.0.9000.tgz(r-4.6-any)btw_1.1.0.9000.tgz(r-4.5-any)
btw_1.1.0.9000.tar.gz(r-4.6-any)btw_1.1.0.9000.tar.gz(r-4.5-any)
btw_1.1.0.9000.tgz(r-4.5-emscripten)
btw.pdf |btw.html
btw/json (API)
NEWS

# Install 'btw' in R:
install.packages('btw', repos = c('https://posit-dev.r-universe.dev', 'https://cloud.r-project.org'))

Bug tracker:https://github.com/posit-dev/btw/issues

Pkgdown/docs site:https://posit-dev.github.io

On CRAN:

Conda:

aiai-agent-toolsellmerllmllm-tools

8.03 score 99 stars 1 packages 46 scripts 838 downloads 54 exports 66 dependencies

Last updated from:78379217b2. Checks:8 OK, 1 NOTE. Indexed: yes.

TargetResultTotal timeArtifact
linux-devel-x86_64OK195
source / vignettesOK216
linux-release-x86_64OK194
macos-devel-arm64OK203
macos-release-arm64OK128
windows-develOK169
windows-releaseOK154
windows-oldrelNOTE163
wasm-releaseOK142

Exports:btwbtw_agent_toolbtw_appbtw_clientbtw_mcp_serverbtw_mcp_sessionbtw_task_create_btw_mdbtw_task_create_readmebtw_thisbtw_tool_agent_subagentbtw_tool_cran_packagebtw_tool_cran_searchbtw_tool_docs_available_vignettesbtw_tool_docs_help_pagebtw_tool_docs_package_help_topicsbtw_tool_docs_package_newsbtw_tool_docs_vignettebtw_tool_env_describe_data_framebtw_tool_env_describe_environmentbtw_tool_files_code_searchbtw_tool_files_listbtw_tool_files_list_filesbtw_tool_files_readbtw_tool_files_read_text_filebtw_tool_files_searchbtw_tool_files_writebtw_tool_files_write_text_filebtw_tool_git_branch_checkoutbtw_tool_git_branch_createbtw_tool_git_branch_listbtw_tool_git_commitbtw_tool_git_diffbtw_tool_git_logbtw_tool_git_statusbtw_tool_githubbtw_tool_ide_read_current_editorbtw_tool_pkg_checkbtw_tool_pkg_coveragebtw_tool_pkg_documentbtw_tool_pkg_load_allbtw_tool_pkg_testbtw_tool_run_rbtw_tool_search_package_infobtw_tool_search_packagesbtw_tool_session_check_package_installedbtw_tool_session_package_infobtw_tool_session_platform_infobtw_tool_sessioninfo_is_package_installedbtw_tool_sessioninfo_packagebtw_tool_sessioninfo_platformbtw_tool_web_read_urlbtw_toolsedit_btw_mduse_btw_md

Dependencies:askpassbase64encbriobslibcachemclicliprcorocpp11curldigestdplyrellmerevaluatefastmapfontawesomefsgenericsgluehighrhtmltoolshttpuvhttr2jquerylibjsonliteknitrlaterlifecyclemagrittrmcptoolsmemoisemimenanonextopensslotelpillarpkgconfigpkgsearchprocessxpromisespspurrrR6rappdirsRcppreprrlangrmarkdownrstudioapiS7sasssessioninfoskimrstringistringrsystibbletidyrtidyselecttinytexutf8vctrswithrxfunxml2yaml

Readme and manuals

Help Manual

Help pageTopics
Plain-text descriptions of R objectsbtw
Create a custom agent tool from a markdown filebtw_agent_tool
Create a btw-enhanced ellmer chat clientbtw_app btw_client
Task: Initialize Project Context Filebtw_task_create_btw_md
Task: Create a Polished READMEbtw_task_create_readme
Describe something for use by an LLMbtw_this
Describe objectsbtw_this.character
Describe a data frame in plain textbtw_this.data.frame btw_this.tbl
Describe the contents of an environmentbtw_this.environment
Tool: Subagentbtw_tool_agent_subagent
Tool: Describe a CRAN packagebtw_tool_cran_package
Tool: Search for an R package on CRANbtw_tool_cran_search
Tool: Package Release Notesbtw_tool_docs_package_news
Tool: Describe data framebtw_tool_env_describe_data_frame
Tool: Describe an environmentbtw_tool_env_describe_environment
Tool: List filesbtw_tool_files_list
Tool: Read a filebtw_tool_files_read
Tool: Code Search in Projectbtw_tool_files_search
Tool: Write a text filebtw_tool_files_write
Tool: Git Branch Checkoutbtw_tool_git_branch_checkout
Tool: Git Branch Createbtw_tool_git_branch_create
Tool: Git Branch Listbtw_tool_git_branch_list
Tool: Git Commitbtw_tool_git_commit
Tool: Git Diffbtw_tool_git_diff
Tool: Git Logbtw_tool_git_log
Tool: Git Statusbtw_tool_git_status
Tool: GitHubbtw_tool_github
Tool: Read current filebtw_tool_ide_read_current_editor
Tool: Describe R package documentationbtw_tool_docs_available_vignettes btw_tool_docs_help_page btw_tool_docs_package_help_topics btw_tool_docs_vignette btw_tool_package_docs
Tool: Run R CMD check on a packagebtw_tool_pkg_check
Tool: Compute package test coveragebtw_tool_pkg_coverage
Tool: Generate package documentationbtw_tool_pkg_document
Tool: Load package codebtw_tool_pkg_load_all
Tool: Run package testsbtw_tool_pkg_test
Tool: Run R codebtw_tool_run_r
Tool: Check if a package is installedbtw_tool_sessioninfo_is_package_installed
Tool: Gather information about a package or currently loaded packagesbtw_tool_sessioninfo_package
Tool: Describe user's platformbtw_tool_sessioninfo_platform
Tool: Read a Web Page as Markdownbtw_tool_web_read_url
Tools: Register tools from btwbtw_tools
Start a Model Context Protocol server with btw toolsbtw_mcp_server btw_mcp_session mcp
Create or edit a btw.md context fileedit_btw_md use_btw_md