This guide provides explicit instructions for installing the ClaudeR package and its dependencies.
The target environment must have:
- R (version 4.0 or later) installed.
- Python (version 3.8 or later) installed and available in the system's PATH.
- The
devtoolsR package installed. If not present, it can be installed by runninginstall.packages("devtools")in R.
Execute the following commands in an R environment (e.g., via Rscript -e "..." from your terminal).
if (!require("devtools")) install.packages("devtools")
devtools::install_github("IMNMV/ClaudeR")Ask the user which CLI agent they want to install for (Claude Code, Codex, or Gemini), then run the matching command:
For Claude Code CLI:
library(ClaudeR)
install_cli(tools = "claude")For OpenAI Codex CLI:
library(ClaudeR)
install_cli(tools = "codex")For Qwen Code CLI:
install_cli(tools = "qwen")For Google Antigravity CLI (agy, Gemini CLI's replacement):
install_cli(tools = "agy")For Google Gemini CLI (legacy; shuts down June 18, 2026):
library(ClaudeR)
install_cli(tools = "gemini")For Claude Desktop or Cursor (desktop apps, not CLI):
library(ClaudeR)
install_clauder()
# For Cursor: install_clauder(for_cursor = TRUE)Each function prints the exact command or config you need to apply. For CLI tools, copy and run the printed command in your terminal. For Gemini, copy the JSON into your gemini.json settings file.
The user must run this in RStudio; it cannot be done from a terminal:
library(ClaudeR)
claudeAddin()Then click "Start Server" in the viewer pane. The MCP server will now accept connections from AI agents.