# R Tidyverse Style

Use when the user asks to review or clean up R code for tidyverse style, standardize...

- Repository: https://github.com/posit-dev/skills (551 stars)
- Category: Testing
- License: MIT
- Last updated: 2026-10-28
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add posit-dev/skills --skill r-tidyverse-style -g -a claude-code -y`
Codex: `npx skills add posit-dev/skills --skill r-tidyverse-style -g -a codex -y`
Cursor: `npx skills add posit-dev/skills --skill r-tidyverse-style -g -a cursor -y`
Gemini CLI: `npx skills add posit-dev/skills --skill r-tidyverse-style -g -a gemini-cli -y`
Claude Code plugin marketplace: `/plugin marketplace add posit-dev/skills`

## Description

Use when the user asks to review or clean up R code for tidyverse style, standardize formatting or names, remove redundant comments or wrappers, or make a behavior-preserving style pass. Also use when writing substantial new R package code if the user requests tidyverse style or the package already follows it. Not for routine small edits or general correctness, security, or test-quality reviews.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Tidyverse style for R package code

Prefer the package's established conventions over the tidyverse guide unless the user requests a migration. Style is not proof of correctness; keep public behavior unchanged during cleanup.

## Work through the task

The rest: https://github.com/posit-dev/skills/blob/HEAD/r-lib/r-tidyverse-style/SKILL.md
