r-style-guide

Enforce tidyverse-based R coding style rules for scripts and packages.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kyleGrealis/claude --skill r-style-guide-kylegrealis
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-style-guide
Source: https://github.com/kyleGrealis/claude/tree/main/claude/.claude/skills/r-style-guide
Command: npx skills add https://github.com/kyleGrealis/claude --skill r-style-guide-kylegrealis

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill ensures R code adheres to a consistent, readable, and maintainable style, preventing common errors and improving collaboration.

Core Features & Use Cases

  • Style Enforcement: Enforces specific rules for quotes, indentation, pipe usage, and naming conventions.
  • Linter & Formatter Integration: Ensures code passes lintr checks and is formatted by styler.
  • Markdown Formatting: Provides guidelines for lists, em dashes, spelling, and URLs in markdown files.
  • Use Case: When reviewing a pull request for an R package, use this Skill to ensure all code follows the established tidyverse-inspired style guide.

Quick Start

Apply the r-style-guide skill to review the provided R script for style consistency.

Frequently Asked Questions about r-style-guide

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

FAQPage Schema
How do I enforce R coding style consistency for tidyverse conventions?

To enforce R coding style consistency, apply specific rules for quotes, indentation, pipe usage, and naming conventions based on tidyverse style. This improves readability and maintainability across scripts, packages, and markdown documentation.

What is the best way to check an R package pull request for style guide adherence?

The best way to check an R package pull request for style guide adherence is to review the code against a tidyverse-inspired style guide. This verifies that scripts and markdown documentation pass established rules for linting and formatting.

Does this R style guide cover markdown documentation formatting rules?

Yes, the R style guide covers markdown documentation formatting. It provides specific guidelines for formatting lists, em dashes, spelling, and URLs to maintain consistency across your markdown documentation files.

Can I use this approach to ensure R code passes lintr checks and styler formatting?

Yes, you can use this approach to ensure R code passes lintr checks and styler formatting. It integrates linter and formatter conventions to enforce specific rules for quotes, indentation, and naming.

What specific coding conventions does an R tidyverse style guide enforce?

An R tidyverse style guide enforces specific rules for quotes, indentation, pipe usage, and naming conventions. It applies these rules to R scripts, packages, and markdown documentation to improve collaboration.