
from tidy-r-skill11
Guidance and patterns for modern tidyverse R: native pipe, dplyr 1.2+ APIs, tidyselect, recoding, and migration from legacy R code.
This skill bundles concise, opinionated guidance on modern tidyverse R practices. It helps agents rewrite, review, and modernise R code by recommending native pipe usage (|>), current dplyr patterns (join_by, .by, across, pick, reframe), tidyselect helpers, and safer recoding/replace primitives (recode_values, replace_values, replace_when). The body includes concrete examples, best-practice rules, and references to topic-specific files for joins, grouping, string handling, migration, and style.
Use this skill when asked to: modernise legacy R code, review tidyverse code for style and correctness, suggest migrations from magrittr/base patterns to tidyverse idioms, or enforce consistent naming and formatting for R projects. It is designed for code-rewriting, code-review prompts, and educating users on current dplyr idioms.
.by grouping, use cli::cli_abort for errors, tidyverse style conventions).Best for agents that can read and edit code: Code-capable assistants (Copilot/Codex/Claude Code/Gemini Code).
This skill has not been reviewed by our automated audit pipeline yet.