r-style-guide

Community

R coding style guide for clean, consistent code.

Authorab604
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Writing consistent R code across projects can be challenging; this guide provides a formal standard for naming, spacing, layout, and function design to improve readability and maintainability.

Core Features & Use Cases

  • Enforces snake_case naming for variables and functions to promote readability and consistency across projects.
  • Recommends 2-space indentation, explicit line breaks, and tidy layout for easier review and collaboration.
  • Prescribes conventional assignment with <- and discourages ambiguous patterns to reduce errors.
  • Provides patterns for function design (single-responsibility functions, clear return values) to enhance reliability and testability.
  • Use Case: Teams working on R scripts or packages can apply these standards to ensure uniform style, simplify code reviews, and accelerate onboarding.

Quick Start

To start using the r-style-guide, adopt snake_case naming, prefer <- for assignment, maintain 2-space indentation, and structure code as outlined in the guide. Then apply the examples and standards when writing new scripts.

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-style-guide
Download link: https://github.com/ab604/claude-code-r-skills/archive/main.zip#r-style-guide

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 223,000+ vetted skills library on demand.