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-languageserver": {
"command": "R",
"extensionToLanguage": {
".R": "r",
".r": "r"
},
"args": [
"--no-echo",
"--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
7-day visitors to each server page
npx claudepluginhub forkernels/sci-lsp --plugin r-lsp