Ships in r-lsp. Installing the plugin adds it to Claude Code.
This LSP server requires R to be installed on your system. Make sure it's available in your PATH before enabling.
Copy this JSON into your .lsp.json to enable this server
Add to your .lsp.json or plugin.json:
{
"lspServers": {
"r": {
"command": "R",
"extensionToLanguage": {
".R": "r",
".r": "r",
".Rmd": "rmd",
".qmd": "quarto",
".rmd": "rmd"
},
"args": [
"--slave",
"--no-save",
"--no-restore",
"-e",
"languageserver::run()"
]
}
}
}File extensions mapped to language identifiers
Server configuration and transport parameters
RstdioCommand-line arguments passed to the server process
Initialization options and workspace settings
Initialization Options:
{
"diagnostics": true
}7-day visitors to each server page
npx claudepluginhub ab604/r-lsp --plugin r-lsp