r

Enforce Google's official R style guide for naming, functions, and data manipulation.

9|1|Updated Feb 25, 2026
One-click install
npx skills add https://github.com/testdino-hq/google-styleguides-skills --skill r-testdino-hq
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r
Source: https://github.com/testdino-hq/google-styleguides-skills/tree/main/r
Command: npx skills add https://github.com/testdino-hq/google-styleguides-skills --skill r-testdino-hq

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill helps you write clean, consistent, and maintainable R code by adhering to Google's official style guide, improving collaboration and reducing bugs.

Core Features & Use Cases

  • Coding Standards: Enforces naming conventions, formatting, and assignment best practices.
  • Function & Data Handling: Guides on proper function definition, namespace qualification, and data manipulation with dplyr.
  • Documentation & Testing: Promotes effective code documentation using roxygen2 and robust testing with testthat.
  • Use Case: Ensure all your data analysis scripts follow a uniform style, making them easier for colleagues to understand and for you to debug later.

Quick Start

Follow the Google R style guide for writing your R code.

Frequently Asked Questions about r

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

FAQPage Schema
What is the Google R style guide for naming conventions and assignment?

The Google R style guide defines rules for naming conventions and assignment operators to ensure R code is clean and consistent. It standardizes syntax formatting to improve collaboration and reduce bugs in data analysis scripts.

How do I document R package functions using roxygen2?

To document R package functions using roxygen2, you follow the style guide's best practices for code documentation. This ensures your function definitions have clear, standardized documentation directly inline with your code.

Can I use dplyr for data manipulation following Google's R coding standards?

Yes, you can use dplyr for data manipulation while following Google's R coding standards. The style guide provides specific patterns for data handling and namespace qualification to ensure your data manipulation remains consistent.

Does Google's R style guide cover testing with testthat?

Yes, Google's R style guide covers testing with testthat. It promotes robust testing practices alongside effective code documentation with roxygen2 to maintain reliable and maintainable R package development.

What is the best way to format R code for team collaboration?

The best way to format R code for team collaboration is by adopting a comprehensive style guide like Google's. It enforces uniform function design, formatting, and namespace qualification, making scripts easier for colleagues to debug and understand.