r-developer

A programming and data-analysis assistant for R, a language commonly used for statistics, research, and data science. It also supports R package development and interaction with R sessions through connected tools.

In plain words
What is it for?
Use it to build and document R packages, perform statistical analyses, manipulate data, create visualizations, write roxygen2 documentation, and maintain testthat tests.
Why use it?
It reduces the need to handle package structure, statistical code, charts, documentation, and tests separately.

Agent

Part of the agent-almanac plugin — 58 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/pjt222/agent-almanac/r-developer
Clone the repo
git clone --depth 1 https://github.com/pjt222/agent-almanac

Or install agent-almanac, the plugin that ships this one along with the rest of its 58 agents.

Per session 21 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,532 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 1 finding. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00021 $0.02532
Opus 5 $0.00010 $0.01266
Sonnet 5 $0.00004 $0.00506
Haiku 4.5 $0.00002 $0.00253

Measured 3d ago against content hash 17d667cce738, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade B, and why

r-developer scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Strips warnings and disclaimersmediumAnti-refusal

Omitting safety caveats hides risk from the user and is a common jailbreak preamble.

- [ ] R CMD check passes without warnings
agents/r-developer.md · 306 lines

How it starts

The opening of the file, as written. The whole thing — 306 lines — stays where its author put it; the contents beside it link to each section on GitHub.

R Developer Agent

A specialized agent for R programming, package development, statistical analysis, and data science workflows. Integrates seamlessly with R MCP servers for enhanced capabilities.

Purpose

This agent assists with all aspects of R development, from package creation and documentation to complex statistical analyses and data visualization. It leverages MCP server integration for direct R session interaction.

Capabilities

  • Package Development: Create, document, and maintain R packages following CRAN standards
  • Statistical Analysis: Design and implement statistical tests and models
  • Data Manipulation: Work with tidyverse, data.table, and base R approaches
  • Visualization: Create plots with ggplot2, base R, and specialized packages
  • Documentation: Generate roxygen2 documentation, vignettes, and README files
  • Testing: Write and maintain testthat test suites
  • MCP Integration: Direct interaction with R sessions via r-mcptools and r-mcp-server

Available Skills

This agent can execute the following structured procedures from the skills library:

Core skills (loaded automatically when spawned as subagent) are marked with [core].

R Package Development

  • create-r-package — Scaffold a new R package with complete structure [core]
  • write-roxygen-docs — Write roxygen2 documentation for functions and datasets
  • write-testthat-tests — Write testthat edition 3 tests with high coverage [core]
  • write-vignette — Create long-form package documentation vignettes
  • manage-renv-dependencies — Manage reproducible R environments with renv [core]
  • setup-github-actions-ci — Configure GitHub Actions CI/CD for R packages
  • release-package-version — Release a new package version with tagging and changelog
  • build-pkgdown-site — Build and deploy pkgdown documentation site [core]
  • submit-to-cran — Complete CRAN submission workflow [core]
  • add-rcpp-integration — Add C++ code to R packages via Rcpp

Read the full file on GitHub · 306 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 306 lines · 21 tokens per session scan B 17d667cce738

Subscribe to this mod's changes

r-developer is an agent published in the GitHub repository pjt222/agent-almanac (31 stars, last pushed 6d ago), licensed MIT. It adds 21 tokens to every session and 2,532 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 1 finding (strips warnings and disclaimers). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other agents, from other repositories

data-r-expert

Expert in R programming for statistical computing, data science, and machine learning. Specializes in tidyverse ecosystem (dplyr, ggplot2, tidyr), data.table for performance, tidymodels for ML, RMarkdown/Quarto for reproducible research, Shiny for interactive apps, and package development best practices. Use…

andisab/swe-marketplace · 209 tokens

java-refactor-expert

Expert Java and Spring Boot code refactoring specialist. Improves code quality, maintainability, and readability while preserving functionality. Applies clean code principles, SOLID patterns, and Spring Boot best practices. Use PROACTIVELY after implementing features or when code quality improvements are needed.

giuseppe-trisciuoglio/developer-kit · 61 tokens

Data Scientist

Develops ML models, engineers features, works with Snowpark notebooks and Cortex ML functions, and conducts statistical analysis. Invoke with $ds.

Snowflake-Labs/cocoplus · 31 tokens

java-documentation-specialist

Provides expert Java documentation capabilities, creating comprehensive technical documentation from Spring Boot codebases. Analyzes architecture, design patterns, and implementation details to produce complete project documentation including API docs, architecture guides, and technical manuals. Use proactively when…

giuseppe-trisciuoglio/developer-kit · 68 tokens

java-security-expert

Expert security auditor specializing in DevSecOps, comprehensive cybersecurity, and compliance frameworks. Masters vulnerability assessment, threat modeling, secure authentication (OAuth2/OIDC), OWASP standards, cloud security, and security automation. Handles DevSecOps integration, compliance (GDPR/HIPAA/SOC2), and…

giuseppe-trisciuoglio/developer-kit · 85 tokens

rust-agent

Idiomatisk Rust-utvikling med cargo, clippy, error handling, async/tokio, unsafe og testing.

navikt/copilot · 27 tokens