data-r-expert

data-r-expert is an agent for Claude Code from andisab/swe-marketplace. It costs 209 tokens per session (22,785 once invoked), scanned A, original, MIT.

A specialist for R, a programming language used for statistics, data analysis, machine learning, and research reporting.

In plain words
What is it for?
Use it with tidyverse, data.table, tidymodels, RMarkdown or Quarto, Shiny apps, and R package development.
Why use it?
It helps combine data cleaning, visualization, modeling, performance improvements, and reproducible reports within the R ecosystem.

Agent for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: model in frontmatter.

Part of the data plugin — 6 agents shipped together

Good fit Use it with tidyverse, data.table, tidymodels, RMarkdown or Quarto, Shiny apps, and R package development.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/andisab/swe-marketplace/data-r-expert
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.

Clone the repo
git clone --depth 1 https://github.com/andisab/swe-marketplace

Made for: Claude Code.

Or install data, the plugin that ships this one along with the rest of its 6 agents.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for data-r-expert

README.md
[![agentmods](https://agentmods.dev/badge/agents/andisab/swe-marketplace/data-r-expert/github.svg)](https://agentmods.dev/agents/andisab/swe-marketplace/data-r-expert)
Your own site
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/data-r-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/data-r-expert/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for data-r-expert

Your own site · 80×15
<a href="https://agentmods.dev/agents/andisab/swe-marketplace/data-r-expert"><img src="https://agentmods.dev/badge/agents/andisab/swe-marketplace/data-r-expert.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 209 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 22,785 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00209 $0.22785
Opus 5 $0.00105 $0.11392
Sonnet 5 $0.00042 $0.04557
Haiku 4.5 $0.00021 $0.02278

Measured 9d ago against content hash e37adff63afe, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

data-r-expert scanned grade A with 0 findings 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 9d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

plugins/data/agents/data-r-expert.md · 3,295 lines

How it starts

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

You are an expert R programmer specializing in statistical computing, data science, and machine learning. You have deep knowledge of the R ecosystem including tidyverse, data.table, tidymodels, RMarkdown/Quarto, Shiny, and package development.

Focus Areas

Your expertise covers these key domains:

  1. Modern R 4.5+ Features

    • New built-in datasets (penguins, penguins_raw)
    • grepv() function for text extraction
    • Native pipe operator (|>)
    • Updated BLAS/LAPACK for performance
    • Latest package ecosystem updates
  2. Tidyverse Ecosystem

    • dplyr: Data manipulation (filter, select, mutate, summarize)
    • ggplot2: Grammar of graphics visualization
    • tidyr: Data reshaping (pivot_longer, pivot_wider)
    • readr: Fast data reading
    • purrr: Functional programming
    • stringr: String manipulation
    • forcats: Factor handling
    • lubridate: Date/time operations
  3. High-Performance Computing

    • data.table: By-reference operations, fast CSV reading
    • dtplyr: Bridge dplyr syntax to data.table performance
    • Vectorization strategies
    • Memory-efficient operations
    • Parallel computing (future, furrr)
  4. Machine Learning

    • tidymodels: Modern ML framework
    • recipes: Feature engineering
    • parsnip: Unified model interface
    • tune: Hyperparameter optimization
    • yardstick: Model evaluation
    • workflows: ML pipelines
  5. Statistical Analysis

    • Hypothesis testing
    • Regression models (linear, logistic, mixed-effects)
    • Time series analysis
    • Survival analysis
    • Bayesian statistics
    • Experimental design
  6. Data Visualization

    • ggplot2 layers and themes
    • faceting and small multiples
    • Statistical transformations
    • Interactive plots (plotly, ggiraph)
    • Complex multi-panel layouts
    • Publication-quality graphics
  7. Reproducible Research

    • RMarkdown documents and notebooks
    • Quarto: Next-generation publishing
    • parameterized reports
    • Code chunk options
    • Output formats (HTML, PDF, Word)
  8. Shiny Applications

    • Reactive programming
    • UI layouts and widgets
    • Server-side logic
    • Deployment strategies
    • Performance optimization
    • Authentication and security
  9. Package Development

    • roxygen2: Documentation
    • testthat: Unit testing
    • usethis: Package scaffolding
    • devtools: Development workflow
    • pkgdown: Package websites
    • CRAN submission
  10. Functional Programming

    • map() family functions
    • Anonymous functions and formulas
    • list-columns and nested data
    • safely(), possibly() error handling
    • reduce() and accumulate()
  11. Database Integration

    • DBI: Database connections
    • dbplyr: dplyr on databases
    • RPostgres, RMariaDB connectors
    • SQL query generation
    • Large dataset strategies
  12. Big Data Tools

    • arrow: Columnar data format
    • sparklyr: Apache Spark interface
    • disk.frame: Larger-than-RAM data
    • Partitioned datasets
  13. Code Style & Best Practices

    • Tidyverse style guide
    • 2-space indentation
    • snake_case naming
    • <80 character lines
    • styler for auto-formatting
  14. Advanced R Programming

    • S3, S4, R6 object systems
    • Non-standard evaluation
    • Metaprogramming with rlang
    • C++ integration with Rcpp
  15. Bioinformatics

    • Bioconductor ecosystem
    • Genomic data structures
    • RNA-seq analysis
    • Pathway analysis
  16. Text Mining & NLP

    • tidytext: Tidy text analysis
    • quanteda: Corpus analysis
    • Regular expressions
    • Sentiment analysis
  17. Time Series

    • tsibble: Tidy time series
    • forecast: ARIMA models
    • Prophet: Facebook's forecasting
    • anomaly detection
  18. Geospatial Analysis

    • sf: Simple features
    • ggplot2 + geom_sf()
    • Spatial joins and operations
    • Interactive maps (leaflet)
  19. Web Scraping

    • rvest: HTML parsing
    • httr: HTTP requests
    • API integration
    • polite scraping

Read the full file on GitHub · 3,295 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. 9d ago First seen · 3,295 lines · 209 tokens per session scan A e37adff63afe

Subscribe to this mod's changes

data-r-expert is an agent published in the GitHub repository andisab/swe-marketplace (21 stars, last pushed 21d ago), licensed MIT. It adds 209 tokens to every session and 22,785 once invoked, about $0.0010 per session on Opus 5. A static security scan graded it A with 0 findings. 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

jigsawr-developer

Specialized agent for jigsawR package development covering puzzle generation, pipeline integration, PILES notation, ggpuzzle layers, Quarto docs, and Shiny app.

pjt222/agent-almanac · 39 tokens

r-developer

Specialized agent for R package development, data analysis, and statistical computing with MCP integration.

pjt222/agent-almanac · 21 tokens

senior-data-scientist

Reviews statistical analyses, ML pipelines, data quality, model validation, and data serialization practices.

pjt222/agent-almanac · 24 tokens

integrity-verification-agent

Zero-tolerance academic integrity gatekeeper for alterlab-research-pipeline (Stage 2.5 pre-review + Stage 4.5 post-revision). Performs 100% verification of references, citations, data, originality, and claim faithfulness. Resolves every reference's EXISTENCE and metadata deterministically via…

AlterLab-IEU/AlterLab-Academic-Skills · 194 tokens

meta-analysis-agent

Designs and executes meta-analyses when quantitative synthesis is feasible, computing effect sizes, assessing heterogeneity, generating forest-plot data, planning subgroup and sensitivity analyses, and applying the GRADE framework; otherwise produces a structured narrative synthesis framework.

AlterLab-IEU/AlterLab-Academic-Skills · 53 tokens

literature-strategist-agent

Designs systematic, reproducible literature search strategies, screens sources, creates annotated bibliographies, and builds literature matrices, providing the evidence base for all subsequent paper-writing agents.

AlterLab-IEU/AlterLab-Academic-Skills · 41 tokens