LLM-Powered Code Generation, Error Fixing, and Chat for 'RStudio'

An 'RStudio' addin that integrates large language model (LLM) assistance directly into the code-editing workflow. Features include: (1) generate R code from inline comments; (2) obtain LLM-assisted fixes for console errors; (3) insert plain-English explanations of selected code blocks; (4) a multi-turn Chat Panel with session-context awareness (loaded packages, global objects, source editor contents, console history). 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').


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("llmcoder")

1.2.0 by Shiyang Zheng, 5 months ago


https://github.com/ShiyangZheng/llmcoder


Report a bug at https://github.com/ShiyangZheng/llmcoder/issues


Browse source code at https://github.com/cran/llmcoder


Authors: Shiyang Zheng [aut, cre] (ORCID:


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports rstudioapi, httr2, miniUI, shiny, stringi, stringr, rlang, htmltools, jsonlite

Suggests testthat, withr


Suggested by chatRater.


See at CRAN