writing-tidyverse-r

Guide R code migration to modern Tidyverse with dplyr 1.1+ features.

61|6|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/jeremy-allen/claude-skills --skill writing-tidyverse-r-jeremy-allen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: writing-tidyverse-r
Source: https://github.com/jeremy-allen/claude-skills/tree/main/writing-tidyverse-r
Command: npx skills add https://github.com/jeremy-allen/claude-skills --skill writing-tidyverse-r-jeremy-allen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps R developers write modern, readable, and efficient Tidyverse code by providing guidance on best practices, style, and migration from legacy patterns.

Core Features & Use Cases

  • Modern Syntax: Enforces the use of native pipes (|>), join_by(), and .by grouping.
  • Style Guide: Promotes consistent naming conventions (snake_case), spacing, and structure.
  • Migration: Offers clear alternatives to older R and Tidyverse functions.
  • Use Case: Reviewing a colleague's R script to ensure it adheres to modern Tidyverse standards, or refactoring an older script to use the latest dplyr features.

Quick Start

Use the writing-tidyverse-r skill to refactor the provided R code snippet to use modern tidyverse patterns.

Frequently Asked Questions about writing-tidyverse-r

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

FAQPage Schema
How do I refactor R code to use modern Tidyverse patterns?

To refactor R code for modern Tidyverse patterns, replace legacy syntax with native pipes (|>), adopt dplyr 1.1+ features like join_by() and .by grouping, and enforce snake_case naming conventions to ensure readability and maintainability.

What is the best way to migrate from base R to Tidyverse dplyr functions?

The best way to migrate from base R to Tidyverse is to replace base loops and subsetting with dplyr verbs, utilize stringr for string manipulation, and adopt current Tidyverse APIs to achieve a consistent and readable code structure.

When should I use the native pipe operator instead of the older Tidyverse pipe?

You should use the native R pipe operator (|>) instead of the older Tidyverse pipe (%>%) when writing modern R scripts to adhere to current Tidyverse coding standards and reduce external dependency requirements.

Does dplyr 1.1+ change how I write join syntax and grouping operations?

Yes, dplyr 1.1+ changes join syntax and grouping operations by introducing join_by() for clearer join conditions and the .by argument for inline grouping, which replaces older grouped data frame workflows.

What are the Tidyverse style guidelines for column operations and string manipulation?

Tidyverse style guidelines for column operations and string manipulation enforce consistent spacing, snake_case naming, and the use of stringr functions to ensure that code remains readable and maintainable.

Why should I update older Tidyverse code to use current APIs?

You should update older Tidyverse code to current APIs to enforce modern syntax, leverage improved dplyr 1.1+ features, and ensure your R scripts remain readable, maintainable, and fully aligned with current standards.