What problem does it solve?
This Skill prevents messy, inconsistent R code by providing concrete conventions for naming, spacing, structure, and function design that improve readability and maintainability.
Core Features & Use Cases
- Function Writing Best Practices: Enforces clear structure, single responsibility, sensible return behavior, and readable defaults for common R workflows.
- Naming and Argument Conventions: Standardizes snake_case naming, verb/noun roles, and rules for prefixed non-standard arguments.
- Tidyverse-Friendly Layout: Guides pipe formatting, assignment style, indentation, and comment intent so code reviews are quicker and changes are safer.
- Error Handling and User-Facing Messaging: Recommends structured user-facing abort patterns for clearer failure modes.
- Use Case: Applying these rules while building data pipelines or helper functions in a small R project to keep behavior and style predictable across multiple collaborators.
Quick Start
Ask an AI to refactor your R function so it follows this R style guide’s naming, formatting, single-responsibility structure, and error handling conventions.