R development agent and language server plugin for Claude Code — packages, Shiny, Quarto, and general R scripting
npx claudepluginhub matheus-rech/r-dev-agentR development agent for packages, Shiny apps, Quarto projects, and general R scripting
R language server for code intelligence and diagnostics
R development agent and language server plugin for Claude Code. Brings first-class R support to Claude Code with smart project detection, strict test discipline, on-demand documentation, and LSP-powered diagnostics.
| Plugin | Description |
|---|---|
| r-dev | R development agent — handles packages, Shiny apps, Quarto projects, and general R scripting |
| r-lsp | R language server — provides diagnostics, go-to-definition, hover docs, and completions |
install.packages(c("languageserver", "devtools", "testthat", "roxygen2", "pak"))
# For on-demand R documentation in Claude Code:
pak::pak("posit-dev/btw")
claude plugins marketplace add https://github.com/matheusrech/r-dev-agent.git
claude plugins install r-dev@r-dev-agent
claude plugins install r-lsp@r-dev-agent
claude mcp add -s "user" r-btw -- Rscript -e "btw::btw_mcp_server(tools = 'docs')"
The R LSP and agent activate on your next session.
When spawned, the agent silently detects your project type and reads the relevant source files:
| Marker Files | Project Type | Auto-reads |
|---|---|---|
DESCRIPTION + R/ | R package | R/, NAMESPACE, DESCRIPTION |
app.R or ui.R + server.R | Shiny app | App files + R/ modules |
_quarto.yml or *.qmd | Quarto project | Config + all .qmd files |
*.Rmd | R Markdown | All .Rmd files |
| Fallback | Plain R scripts | All .R files in working dir |
The agent follows strict rules to prevent the most common AI coding failure mode — modifying tests to make them pass:
Uses the btw MCP server on demand — not at startup. The R LSP handles basic signatures and diagnostics passively; btw provides deeper documentation when the agent encounters unfamiliar functions.
The agent knows about and invokes these Claude Code skills when they're available:
r-tidyverse-expert — tidyverse patterns, dplyr 1.1+, rlang, purrrtesting-r-packages — testthat 3 patterns, snapshots, fixturesr-cli — CLI output formattingcran-extrachecks — CRAN submission prepmeta-analysis-workflow — effect sizes, forest plotsquarto-authoring — Quarto document authoringbrand-yml — brand styling for Shiny/Quartorelease-post — release blog posts|>)languageserver (for LSP), devtools, testthatbtw (for MCP docs), pak (for dependency management)This project was inspired by Simon P. Couch's blog posts on using Claude Code for R development. His key insights — that R needs explicit context building, that Claude deletes tests instead of fixing code, and that MCP servers for R documentation are transformative — directly shaped this agent's design.
The gap between R and Python/JavaScript support in Claude Code used to require extensive workarounds. This plugin aims to close that gap.
MIT
Claude Code marketplace entries for the plugin-safe Antigravity Awesome Skills library and its compatible editorial bundles.
Production-ready workflow orchestration with 84 marketplace plugins, 192 local specialized agents, and 156 local skills - optimized for granular installation and minimal token usage
Directory of popular Claude Code extensions including development tools, productivity plugins, and MCP integrations