tidyverse-patterns

Guide R users to modern tidyverse patterns with dplyr 1.1+ and R 4.3+.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/jhelvy/dotfiles --skill tidyverse-patterns-jhelvy
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: tidyverse-patterns
Source: https://github.com/jhelvy/dotfiles/tree/main/claude/skills/tidyverse-patterns
Command: npx skills add https://github.com/jhelvy/dotfiles --skill tidyverse-patterns-jhelvy

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps R users adopt and implement modern, efficient, and readable coding patterns within the tidyverse ecosystem, improving code quality and maintainability.

Core Features & Use Cases

  • Modern Syntax: Guides users on using the native pipe (|>), modern join syntax (join_by()), and tidy selection ({{}}, .data[[]]).
  • Best Practices: Emphasizes profiling before optimizing, readable code, and adherence to the tidyverse style guide.
  • Use Case: A data scientist is refactoring an older R script that uses %>% and character vectors for joins. They can consult this Skill to update the code to use |> and join_by() for better clarity and performance.

Quick Start

Update the provided R code snippet to use modern tidyverse pipe syntax.

Frequently Asked Questions about tidyverse-patterns

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

FAQPage Schema
How do I update R code to use the native pipe instead of the magrittr pipe?

To update R code to use the native pipe, replace `%>%` with `|>` and adjust surrounding syntax to maintain readability. This modern tidyverse pattern improves code clarity and aligns with R 4.3+ best practices for efficient, maintainable scripting.

What is the modern tidyverse syntax for performing joins in dplyr 1.1+?

Modern dplyr 1.1+ joins use the `join_by()` function instead of character vectors to specify join columns. This tidyverse pattern provides better clarity, supports flexible join conditions, and improves overall code readability during data wrangling.

How do I refactor old R scripts to use modern tidyverse coding patterns?

To refactor old R scripts, migrate older syntax to modern tidyverse patterns by adopting `|>`, `join_by()`, and tidy selection like `{{}}`. This process emphasizes profiling before optimizing and adheres to the tidyverse style guide for better maintainability.

Can I use tidy selection and cur-curly braces with dplyr and purrr functions?

Yes, tidy selection using `{{}}` and `.data[[]]` works seamlessly with dplyr and purrr functions. These modern tidyverse patterns allow flexible column selection and robust function programming while maintaining strict adherence to R 4.3+ style guidelines.

What are common tidyverse anti-patterns I should avoid in R?

Common tidyverse anti-patterns include premature optimization without profiling, overusing complex nested pipes, and ignoring modern dplyr 1.1+ syntax. Avoid these by prioritizing readability, using `join_by()`, and following the tidyverse style guide for efficient R code.

Does modern tidyverse code work with older versions of R?

Modern tidyverse patterns focusing on `|>`, `join_by()`, and tidy selection are optimized for R 4.3+ and dplyr 1.1+. Using these features in older R versions may cause compatibility issues, so migrating your environment is recommended for full functionality.