Software
chattr

chattr

chattr is an R package that provides an interface to large language models (LLMs) directly from RStudio and Positron. It lets you send prompts to an LLM from your script or through a built-in Shiny Gadget app, with a focus on assisting exploratory data analysis tasks.

The package connects to a wide range of LLM providers — including OpenAI, Anthropic, Databricks, Ollama, and many others — through the ellmer package. It automatically enriches your prompts with context about your current R environment, such as data frame structures and working directory file paths, which helps the model produce responses that follow recommended R best practices. Code returned by the LLM can be copied to your clipboard, pasted into your current script, or opened in a new script, all from within the chat interface.

Contributors#

Resources featuring chattr#

Posts about chattr#