LLMAgentR: Language Model Agents in R for AI Workflows and Research

Provides modular, graph-based agents powered by large language models (LLMs) for intelligent task execution in R. Supports structured workflows for tasks such as forecasting, data visualization, feature engineering, data wrangling, data cleaning, 'SQL', code generation, weather reporting, and research-driven question answering. Each agent performs iterative reasoning: recommending steps, generating R code, executing, debugging, and explaining results. Includes built-in support for packages such as 'tidymodels', 'modeltime', 'plotly', 'ggplot2', and 'prophet'. Designed for analysts, developers, and teams building intelligent, reproducible AI workflows in R. Compatible with LLM providers such as 'OpenAI', 'Anthropic', 'Groq', and 'Ollama'. Inspired by the Python package 'langagent'.

Getting started

Package details

AuthorKwadwo Daddy Nyame Owusu Boakye [aut, cre]
MaintainerKwadwo Daddy Nyame Owusu Boakye <kwadwo.owusuboakye@outlook.com>
LicenseMIT + file LICENSE
Version0.3.0
URL https://github.com/knowusuboaky/LLMAgentR https://knowusuboaky.github.io/LLMAgentR/
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("LLMAgentR")

Try the LLMAgentR package in your browser

Any scripts or data that you put into this service are public.

LLMAgentR documentation built on June 8, 2025, 10:02 a.m.