Modern R Development Guide

Guide modern R development with tidyverse patterns, performance profiling, and rlang metaprogramming.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/jhelvy/dotfiles --skill modern-r-development-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Modern R Development Guide
Source: https://github.com/jhelvy/dotfiles/tree/main/claude/skills/data-analysis-with-r
Command: npx skills add https://github.com/jhelvy/dotfiles --skill modern-r-development-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide to modern R development, focusing on best practices, performance, and the latest tidyverse patterns to write efficient and readable code.

Core Features & Use Cases

  • Modern Tidyverse Patterns: Learn to use the native pipe (|>), modern join syntax (join_by()), and advanced data masking techniques ({{}}, .data).
  • Performance Optimization: Understand how to profile code with profvis and bench, and when to use different tools for performance analysis.
  • Package Development: Get guidance on using rlang for metaprogramming, vctrs for type stability, and S7 for modern OOP.
  • Use Case: A data scientist needs to refactor an existing R script to improve its performance and adhere to current best practices. This Skill provides the necessary patterns and guidelines.

Quick Start

Review the section on "Modern Tidyverse Patterns" to understand the native pipe and modern join syntax.

Frequently Asked Questions about Modern R Development Guide

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I use the native pipe and modern tidyverse patterns in R?

To use modern tidyverse patterns in R, apply the native pipe (|>), utilize join_by() for modern join syntax, and implement data masking techniques like {{}} and .data for efficient, readable code.

What is the best way to profile R code for performance optimization?

The best way to profile R code performance is using profvis and bench packages, which provide tools to analyze execution time and identify bottlenecks for optimization.

How do I use rlang for metaprogramming in R package development?

Use rlang for metaprogramming in R package development to manipulate expressions, control evaluation, and implement data masking, ensuring type stability with vctrs and modern OOP with S7.

Does modern R development require vctrs and S7 for type stability?

Modern R development uses vctrs for type stability and S7 for modern object-oriented programming, ensuring reliable package development and consistent behavior across tidyverse operations.

When should I use data masking with {{}} in R tidyverse functions?

Use data masking with {{}} in R tidyverse functions when you need to pass column names or expressions as function arguments, enabling flexible and reusable code for data analysis.

Can I refactor existing R scripts to improve performance with modern R practices?

Yes, you can refactor existing R scripts to improve performance by adopting native pipe usage, modern join syntax, profiling with profvis, and tidyverse patterns for better readability and maintainability.