r-guide

Enforce R coding standards and reproducible workflows for data analysis.

7|1|Updated Nov 3, 2025
One-click install
npx skills add https://github.com/ar4mirez/samuel --skill r-guide
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-guide
Source: https://github.com/ar4mirez/samuel/tree/main/template/.claude/skills/r-guide
Command: npx skills add https://github.com/ar4mirez/samuel --skill r-guide

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive set of guardrails, patterns, and best practices for developing R code, ensuring consistency, reproducibility, and efficiency in AI-assisted R development.

Core Features & Use Cases

  • Coding Standards: Enforces Tidyverse conventions, vectorization, and functional programming principles.
  • Reproducibility: Guides on dependency management with renv and literate programming with R Markdown/Quarto.
  • Error Handling & Testing: Promotes robust error handling and effective testing strategies using testthat.
  • Use Case: When working on a data analysis project in R, this Skill will ensure your code adheres to project-specific standards, making it easier for collaborators and AI assistants to understand and maintain.

Quick Start

Apply the R language guardrails and best practices to your current R project.

Frequently Asked Questions about r-guide

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

FAQPage Schema
What are the best practices for R Markdown and reproducible data analysis?

Best practices for R Markdown involve using literate programming and dependency management with `renv` to ensure reproducible statistical computing. This Skill enforces R Markdown guidelines and testing standards to maintain consistent data analysis workflows.

How do I enforce tidyverse conventions in R code?

To enforce tidyverse conventions in R code, this Skill applies coding standards that promote vectorization patterns and functional programming principles. It provides guardrails to ensure AI-assisted development adheres to project-specific consistency guidelines.

Can I use this Skill with Quarto and RStudio projects?

Yes, the Skill applies to R files including .R, .Rmd, and .qmd formats, as well as DESCRIPTION files. It is designed to integrate seamlessly into your existing RStudio environment and data analysis projects.

How do I handle errors and testing in R using testthat?

Handling errors and testing in R is guided by this Skill through promoting robust error handling and effective testing strategies using `testthat`. It establishes testing standards to ensure reliable and reproducible statistical computing.

What is the best way to manage R dependencies for reproducible computing?

The best way to manage R dependencies for reproducible computing is by using `renv`. This Skill guides dependency management practices to ensure consistent environments and reproducible data analysis across different collaborators and AI assistants.

How do I structure R scripts for AI-assisted development?

Structuring R scripts for AI-assisted development requires applying language guardrails and best practices for reproducibility. This Skill provides patterns that make R code easier for collaborators and AI assistants to understand and maintain.