Designing Oop R
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.
Install
npx skills add jeremy-allen/claude-skills --skill designing-oop-rgit clone --depth 1 https://github.com/jeremy-allen/claude-skills.git /tmp/claude-skills
mkdir -p ~/.claude/skills
cp -r /tmp/claude-skills/designing-oop-r ~/.claude/skills/designing-oop-rPersonal skills live in ~/.claude/skills. Use .claude/skills in a project folder to share a skill with your team.
From the SKILL.md
# Designing OOP R This skill covers object-oriented programming in R, including S7, S3, S4, and vctrs-based classes. ## Decision Tree: What Are You Building? ### 1. Vector-like objects (behave like atomic vectors) **Use vctrs when:** - Need data frame integration (columns/rows) - Want type-stable vector operations - Building factor-like, date-like, or numeric-like classes - Need consistent coercion/casting behavior - Working with existing tidyverse infrastructure Examples: custom date classes, units, categorical data ### 2. General objects (complex data structures, not vector-like) **Use S7 when:** - NEW projects that need formal classes - Want property validation and safe property access (`@`) - Need multiple dispatch (beyond S3's double dispatch) - Converting from S3 and want better structure - Building class hierarchies with inheritance - Want better error messages and discoverability **Use S3 when:** - Simple classes with minimal structure needs - Maximum compatibility and minimal dependencies - Quick prototyping or internal classes - Contributing to existing S3-based ecosystems - Performance is absolutely critical (minimal overhead) **Use S4 when:** - Working in Bioconductor ecosystem - Need complex multiple inheritance (S7 doesn't support this) - Existing S4 codebase that works well ## S7 vs S3 Comparison | Feature | S3 | S7 | When S7 wins | |---------|----|----|---------------|
Details
- Skill name
designing-oop-r- Repository
- jeremy-allen/claude-skills
- Path
designing-oop-r/SKILL.md- Repo updated
- 16 January 2026
FAQ
What does the Designing Oop R skill do?
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.
How do I install the Designing Oop R skill?
skills CLI (Claude Code, Cursor, Codex and more): npx skills add jeremy-allen/claude-skills --skill designing-oop-r. Skills go in ~/.claude/skills (personal) or .claude/skills (project), and Claude loads them automatically when a task matches the description.
Is Designing Oop 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.
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.
Investigate
107Dimon94/skills
只读调研本仓代码与历史,产出带引用的解释或方案推荐。用于「调研 / investigate」「搞清楚 X」「A 还是 B」「确定吗」类请求;机制走 how,动机叠加 why,不改代码。
Stock Master
49EagleF6432614/stock-master
综合性股票技术分析工具,小白友好。采用混合数据源(Yahoo Finance + Alpha Vantage MCP),提供交互式HTML可视化报告(Lightweight Charts K线图+技术叠加+Swing标注+趋势线+S/R色带)和通俗易懂的分析文字、买卖点建议、Excel持仓管理。支持港股本地计算、ATR动态止损、KDJ随机指标、MACD/RSI背离检测、OBV量能分析、斐波那契支撑阻力位、K线形态识别(锤子线/吞没/十字星)、趋势形态识别(双底/头肩/三角形)。支持TradingView跳转、飞书多维表格同步。当用户请求股票分析、技术指标、交易建议、持仓分析时激活。
Icp Creator
69az9713/ai-co-writing-claude-skills
Create detailed Ideal Client Profile through guided interview. Use when the user needs to define their target audience, understand their customers' problems and language, or build an ICP for content targeting.
Browse the most popular Claude skills, all finance & crypto skills, or write your own with the skills generator.