R Code Style Skill

Community

Enforce clean, consistent R code per Google style

Authorsunzhk
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Readability and consistency issues in R code across teams slow reviews and introduce hidden bugs. This skill enforces Google's R Style Guide, providing automatic checks and practical guidance to keep naming, assignment, dependencies, and documentation aligned.

Core Features & Use Cases

  • Naming and readability checks: enforce BigCamelCase for public functions and dot-prefix for private helpers.
  • Assignment and piping: require leftward assignment and consistent use of pipes with readable line breaks.
  • Functions and returns: emphasize explicit return statements and explicit boundary validation.
  • Dependencies and namespaces: prefer explicit namespace usage and minimal broad imports to reduce conflicts.
  • Risky patterns: discourage attach() and silent global state modifications to improve reliability.

Quick Start

Run the style checker on your R codebase to identify and fix naming, assignment, and namespace issues.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: R Code Style Skill
Download link: https://github.com/sunzhk/shared-skills/archive/main.zip#r-code-style-skill

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.