llmcoder: LLM-Powered Code Generation and Error Fixing for 'RStudio'

An 'RStudio' addin that integrates large language model (LLM) assistance directly into the code-editing workflow. Users can generate R code from inline comments, obtain LLM-assisted fixes for console errors, and insert plain-English explanations of selected code blocks - all without leaving the editor. Supports 'OpenAI', 'Anthropic' (Claude), 'DeepSeek', 'Groq', 'Together AI', 'OpenRouter', 'Ollama' (fully local, no API key required), and any 'OpenAI'-compatible custom endpoint (e.g. 'LM Studio', 'vLLM', 'llama.cpp').

Version: 1.0.0
Depends: R (≥ 4.1.0)
Imports: rstudioapi (≥ 0.13), httr2 (≥ 1.0.0), miniUI (≥ 0.1.1), shiny (≥ 1.7.0), stringr (≥ 1.5.0), rlang (≥ 1.0.0)
Suggests: jsonlite (≥ 1.8.0), testthat (≥ 3.0.0), withr (≥ 2.5.0)
Published: 2026-04-29
DOI: 10.32614/CRAN.package.llmcoder (may not be active yet)
Author: Shiyang Zheng ORCID iD [aut, cre]
Maintainer: Shiyang Zheng <shiyang.zheng at nottingham.ac.uk>
BugReports: https://github.com/ShiyangZheng/llmcoder/issues
License: MIT + file LICENSE
URL: https://github.com/ShiyangZheng/llmcoder
NeedsCompilation: no
Citation: llmcoder citation info
CRAN checks: llmcoder results

Documentation:

Reference manual: llmcoder.html , llmcoder.pdf

Downloads:

Package source: llmcoder_1.0.0.tar.gz
Windows binaries: r-devel: not available, r-release: not available, r-oldrel: not available
macOS binaries: r-release (arm64): llmcoder_1.0.0.tgz, r-oldrel (arm64): llmcoder_1.0.0.tgz, r-release (x86_64): not available, r-oldrel (x86_64): not available

Linking:

Please use the canonical form https://CRAN.R-project.org/package=llmcoder to link to this page.