r-language-api

r-language-api is a skill for Claude Code, Codex from LeoLin990405/r-analytics-skill. It costs 26 tokens per session (482 once invoked), scanned A, original, MIT.

A set of R interfaces for running code written in Python, Java, JavaScript, and C++. R is a programming language often used for statistics and data analysis.

In plain words
What is it for?
Use it to call Python, Java, JavaScript, or C++ code and exchange data between R and those languages.
Why use it?
It lets an R project reuse libraries and functions from other programming languages instead of rewriting them.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to call Python, Java, JavaScript, or C++ code and exchange data between R and those languages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/leolin990405/r-analytics-skill/r-language-api
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.

Any agent
npx skills add LeoLin990405/r-analytics-skill --skill r-language-api
Clone the repo
git clone --depth 1 https://github.com/LeoLin990405/r-analytics-skill

Made for: Claude Code, Codex.

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 r-language-api

README.md
[![agentmods](https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/r-language-api/github.svg)](https://agentmods.dev/skills/leolin990405/r-analytics-skill/r-language-api)
Your own site
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/r-language-api"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/r-language-api/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 r-language-api

Your own site · 80×15
<a href="https://agentmods.dev/skills/leolin990405/r-analytics-skill/r-language-api"><img src="https://agentmods.dev/badge/skills/leolin990405/r-analytics-skill/r-language-api.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 482 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.00026 $0.00482
Opus 5 $0.00013 $0.00241
Sonnet 5 $0.00005 $0.00096
Haiku 4.5 $0.00003 $0.00048

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

Security

Grade A, and why

r-language-api 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 7d 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.

sub-skills/r-language-api/SKILL.md · 109 lines

What it actually says

R Language Interfaces

Call other programming languages from R.

reticulate (Python)

library(reticulate)

# Use Python
py_run_string("x = 1 + 1")
py$x

# Import modules
np <- import("numpy")
pd <- import("pandas")

# Call Python functions
np$array(c(1, 2, 3))
pd$DataFrame(list(a = 1:3, b = 4:6))

rJava (Java)

library(rJava)

# Initialize JVM
.jinit()

# Create Java objects
str <- .jnew("java/lang/String", "Hello")

# Call methods
.jcall(str, "I", "length")
.jcall(str, "S", "toUpperCase")

V8 (JavaScript)

library(V8)

# Create context
ctx <- v8()

# Run JavaScript
ctx$eval("var x = 1 + 1")
ctx$get("x")

# Call functions
ctx$eval("function add(a, b) { return a + b; }")
ctx$call("add", 1, 2)

Rcpp (C++)

library(Rcpp)

# Inline C++
cppFunction('
  int add(int x, int y) {
    return x + y;
  }
')
add(1, 2)

# Source C++ file
sourceCpp("functions.cpp")

Data Exchange

# R to Python
py$df <- r_to_py(mtcars)

# Python to R
r_df <- py_to_r(py$df)

# Automatic conversion
reticulate::py_config()

Best Practices

# 1. Check availability
reticulate::py_available()
rJava::.jcheck()

# 2. Handle errors
tryCatch({
  py_run_string("import nonexistent")
}, error = function(e) {
  message("Python error: ", e$message)
})

# 3. Clean up resources
# Java: .jgc()
# V8: ctx$reset()
Files

What ships with it

4 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 7d ago First seen · 109 lines · 26 tokens per session scan A 7fb5a6a2e39e

Subscribe to this mod's changes

r-language-api is a skill published in the GitHub repository LeoLin990405/r-analytics-skill (5 stars, last pushed 5mo ago), licensed MIT. It adds 26 tokens to every session and 482 once invoked, about $0.0001 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-09-03.

Related

Other skills, from other repositories

fused-overview

Orientation to what Fused is and when to use it. Use when deciding whether to use Fused for a task, planning a new Fused project, or understanding Fused's capabilities as a remote Python execution platform.

fusedio/skills · 49 tokens

algo-avl-trees

Implement a self-balancing AVL binary search tree in Python with rotation-based rebalancing (LL/RR/LR/RL) guaranteeing O(log n) insert/delete/search. Use when a user asks to build/implement an AVL tree, keep a sorted index balanced under insert/delete, explain balance factor or tree rotations, or avoid O(n)…

Pavel-Kravchenko/Bioinformatics · 97 tokens

algo-hash-tables-bloom

Implement Python hash tables (chaining, open addressing, rehashing) and Bloom filters for set membership. Use when building a hash table from scratch, resolving hash collisions, sizing a Bloom filter, or checking k-mer/key set membership under memory limits.

Pavel-Kravchenko/Bioinformatics · 59 tokens

bio-applied-bio-data-formats

Parse/write FASTA, FASTQ, SAM/BAM, VCF, BED, GFF/GTF with pysam and pure Python; decode SAM FLAG/CIGAR; reconcile 0-based vs 1-based coordinates. Use for custom format parsers or off-by-one coordinate bugs.

Pavel-Kravchenko/Bioinformatics · 67 tokens

python-advanced-sql

Write Python decorators/context managers/dataclasses and query gene/variant tables with sqlite3/pandas SQL (JOIN, GROUP BY, HAVING). Use for retry/caching/validation wrappers or SQL against Ensembl/UCSC-style schemas.

Pavel-Kravchenko/Bioinformatics · 52 tokens

python-bio-classes

Build Python classes for Gene/DNA/RNA/Protein records with eq/lt/hash, @property validation, ABCs, and @classmethod parsers (fromfastastring). Use when modeling genes/FASTA/GFF as objects or asked about Python OOP, inheritance, dataclasses.

Pavel-Kravchenko/Bioinformatics · 69 tokens