Customizing Vectors R
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.
Install
npx skills add jeremy-allen/claude-skills --skill customizing-vectors-rgit clone --depth 1 https://github.com/jeremy-allen/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/customizing-vectors-r ~/.claude/skills/customizing-vectors-rPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Customizing Vectors R This skill covers type-stable operations and custom vector class design using the vctrs package. ## Core Benefits - **Type stability** - Predictable output types regardless of input values - **Size stability** - Predictable output sizes from input sizes - **Consistent coercion rules** - Single set of rules applied everywhere - **Robust class design** - Proper S3 vector infrastructure ## When to Use vctrs ### Use vctrs when: 1. **Building custom vector classes** - Data frame compatibility, subsetting 2. **Type-stable functions in packages** - Guaranteed output types 3. **Consistent coercion/casting** - Explicit rules, predictable behavior 4. **Size/length stability** - Predictable sizing from inputs ### Don't use vctrs when: - Simple one-off analyses - Base R is sufficient - No custom classes needed - Standard types work fine - Performance critical + simple operations - Base R may be faster - External API constraints - Must return base R types ## vctrs vs Base R Decision Matrix | Use Case | Base R | vctrs | When to Choose vctrs | |----------|--------|-------|---------------------| | Simple combining | `c()` | `vec_c()` | Need type stability, consistent rules | | Custom classes | S3 manually | `new_vctr()` | Want data frame compatibility, subsetting | | Type conversion | `as.*()` | `vec_cast()` | Need explicit, safe casting | | Finding common type | Not available | `vec_ptype_common()` | Combining heterogeneous inputs |
Details
- Skill name
customizing-vectors-r- Repository
- jeremy-allen/claude-skills
- Path
customizing-vectors-r/SKILL.md- Repo updated
- 16 January 2026
FAQ
What does the Customizing Vectors R skill do?
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.
How do I install the Customizing Vectors R skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jeremy-allen/claude-skills --skill customizing-vectors-r. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Customizing Vectors R popular?
It lives in jeremy-allen/claude-skills, which has 67 GitHub stars and 7 forks.
Related skills
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.
Developing Packages R
67jeremy-allen/claude-skills
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.
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.
Diagnose
43aws-samples/sample-kiro-cli-multiagent-development
Investigate and fix open issues in the .kiro/issues/ folder using test-first debugging. Use when asked to diagnose, triage, or work through unresolved bug reports, or when the user mentions open issues that need fixing.
Blast Radius
107Dimon94/skills
Blast radius: what a change breaks beyond its diff, with the one safety fact proven by running real code. Use for 'blast radius of X' or 'what could this break', a small diff you don't trust, choosing E2E scenarios when the reach is unclear, or a review whose diff touches shared interfaces, schemas, wire formats, or flags.
Formal Verify Delivery Cycle
107Dimon94/skills
有界穷举检查 delivery-cycle 维护入口的时序与重试性质(R8 不写回旧周、R9 先读后写不盲重放、verified 必有回读、partial 不冒充 synchronized、R11 重跑零写入)。改动 skills/delivery-cycle/scripts/delivery-cycle.js 的执行、前读、写入、回读、时钟或结果判定代码,或改 tests/fake-adapters.js 时使用。
Browse the most popular Claude skills, all testing & qa skills, or write your own with the skills generator.