r-style-guide

Standardize R script naming, spacing, and function design.

1|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/gnoblet/ANA_app_svelte --skill r-style-guide-gnoblet
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-style-guide
Source: https://github.com/gnoblet/ANA_app_svelte/tree/main/.claude/.claude/skills/r-style-guide
Command: npx skills add https://github.com/gnoblet/ANA_app_svelte --skill r-style-guide-gnoblet

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps teams write consistent, readable, and maintainable R code by enforcing naming conventions, spacing, and function design standards.

Core Features & Use Cases

  • Naming and spacing conventions for variables, functions, and files to improve readability.
  • Function design guidelines emphasizing single responsibility, explicit returns, and robust error handling patterns.
  • Data-first piping and tidyverse-friendly practices to promote predictable code flow and consistency.
  • Use Case: on-boarding new team members, conducting code reviews, and maintaining large R codebases.

Quick Start

Apply this style guide to an R script to standardize its naming, spacing, and structure.

Frequently Asked Questions about r-style-guide

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

FAQPage Schema
What are standard R coding practices for naming variables and functions?

Standard R coding practices enforce consistent naming conventions, spacing, and function design to improve readability. This guide provides concrete examples for variables, functions, and files to ensure maintainable team projects.

How do I write clean R code with tidyverse-friendly practices?

To write clean R code, apply data-first piping and tidyverse-friendly practices. This promotes predictable code flow and consistency across your scripts, ensuring reliable execution and easier maintenance.

What's the best way to structure R functions for maintainability?

The best way to structure R functions is following single responsibility principles, explicit returns, and robust error handling patterns. This guide provides concrete guidance for designing reliable, maintainable functions.

Does this R style guide work for onboarding new team members?

Yes, this R style guide works for onboarding new team members. It standardizes naming conventions, spacing, and structure, providing a concrete reference to ensure consistent code quality across team projects.

Can I use this guide for standardizing R code reviews?

Yes, you can use this guide for standardizing R code reviews. It enforces naming conventions, spacing, and error-handling patterns with concrete examples, ensuring consistent evaluation of readability and maintainability.