Developing Packages R
Building robust R packages with modern tidyverse patterns. Use this skill when creating or maintaining R packages, designing APIs, choosing dependencies, implementing input validation, writing error messages, or deciding between internal and exported functions. Covers dependency strategy, tidyverse API design patterns, validation approaches, error handling with cli/rlang, testing levels, and documentation priorities.
Install
npx skills add jeremy-allen/claude-skills --skill developing-packages-rgit clone --depth 1 https://github.com/jeremy-allen/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/developing-packages-r ~/.claude/skills/developing-packages-rPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Developing Packages R
This skill covers building robust R packages with modern patterns and best practices.
## Dependency Strategy
### When to Add Dependencies vs Base R
**Add dependency when:**
- Significant functionality gain
- Maintenance burden reduction
- User experience improvement
- Complex implementation (regex, dates, web)
**Use base R when:**
- Simple utility functions
- Package will be widely used (minimize deps)
- Dependency is large for small benefit
- Base R solution is straightforward
See [dependency-decisions.md](references/dependency-decisions.md) for example decisions.
### Tidyverse Dependency Guidelines
| Category | Packages | Guidance |
|----------|----------|----------|
| **Core** (usually worth it) | dplyr, purrr, stringr, tidyr | Complex manipulation, functional programming |
| **Specialized** (evaluate carefully) | lubridate, forcats, readr, ggplot2 | Only if heavy usage |
| **Heavy** (use sparingly) | tidyverse, shiny | Meta-package or interactive apps only |
## API Design Patterns
### Modern Tidyverse API
See [api-design.md](references/api-design.md) for:
1. Use `.by` for per-operation grouping
2. Use `{{ }}` for user-provided columns
3. Use `...` for flexible arguments
4. Return consistent types (tibbles, not data.frames)
## Input Validation Strategy
Validation level depends on function type:
| Function Type | Validation Level |
|---------------|-----------------|
| **User-facing** | Comprehensive - check all inputs |Details
- Skill name
developing-packages-r- Repository
- jeremy-allen/claude-skills
- Path
developing-packages-r/SKILL.md- Repo updated
- 16 January 2026
FAQ
What does the Developing Packages R skill do?
Building robust R packages with modern tidyverse patterns. Use this skill when creating or maintaining R packages, designing APIs, choosing dependencies, implementing input validation, writing error messages, or deciding between internal and exported functions. Covers dependency strategy, tidyverse API design patterns, validation approaches, error handling with cli/rlang, testing levels, and documentation priorities.
How do I install the Developing Packages R skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jeremy-allen/claude-skills --skill developing-packages-r. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Developing Packages R popular?
It lives in jeremy-allen/claude-skills, which has 67 GitHub stars and 7 forks.
Related skills
Customizing Vectors R
67jeremy-allen/claude-skills
Type-stable vector operations and custom vector classes using vctrs. Use this skill when building R packages with custom types, need guaranteed output types regardless of input values, implementing consistent coercion/casting rules, or creating vector classes that work seamlessly with data frames. Covers when to use vctrs vs base R, building custom vector classes, coercion methods, and testing vctrs classes.
Designing Oop R
67jeremy-allen/claude-skills
Object-oriented programming in R: S7, S3, S4, and vctrs class design. Use this skill when designing classes for R projects, choosing between OOP systems, building class hierarchies with inheritance, or migrating between systems. Covers S7 class definitions and methods, the decision matrix for choosing S7 vs S3 vs S4 vs vctrs, practical guidelines for each system, and migration strategies.
Metaprogramming Rlang
67jeremy-allen/claude-skills
Tidy evaluation and programmatic tidyverse patterns using rlang. Use this skill when writing functions that accept column names as arguments, building tidyverse-compatible APIs, or working with data-masking and injection operators. Covers embracing with {{}}, injection (!! and !!!), dynamic dots, .data/.env pronouns, name injection with glue syntax, bridge patterns between selection and data-masking, and package development with rlang.
CLI Execution
43aws-samples/sample-kiro-cli-multiagent-development
CLI execution best practices covering RTK token compression, AWS discover-then-execute patterns, output control, and bash/zsh scripting with logging. Use when running CLI commands, querying AWS resources, writing automation scripts, or working with shell tooling.
Optimizing R
67jeremy-allen/claude-skills
R performance profiling, benchmarking, and optimization strategies. Use this skill when code is running slowly, comparing alternative implementations, deciding between dplyr/data.table/base R, or implementing parallel processing. Covers profvis and bench usage, performance workflow, parallel processing with in_parallel(), data backend selection, modern purrr patterns (list_rbind, walk), and common performance anti-patterns to avoid.
Triage
115javiarmesto/ALDC-AL-Development-Collection
Reactive support for EXISTING Business Central AL code — reproduce, localize, root-cause, and recommend a minimal fix for bugs, regressions, and incidents. Read-only on code: produces a diagnosis and hands the fix to @al-implementer. The dynamic counterpart to the static audit (/aldc:audit). Use when you start from a symptom ("this throws", "this is slow", "broke after the last change").
Browse the most popular Claude skills, all software development skills, or write your own with the skills generator.