r-package

Codify R package development conventions into a reusable playbook.

Updated Feb 24, 2026
One-click install
npx skills add https://github.com/drmowinckels/dotfiles --skill r-package
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-package
Source: https://github.com/drmowinckels/dotfiles/tree/main/config/claude/skills/r-package
Command: npx skills add https://github.com/drmowinckels/dotfiles --skill r-package

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Standardizes R package development by codifying preferred coding style, naming conventions, and documentation practices into a reusable playbook for individual developers and teams.

Core Features & Use Cases

  • Minimal but complete roxygen2 documentation guidance for public APIs, with examples.
  • Consistent naming conventions across data, transformation, and IO functions to improve readability.
  • Guidance on package structure, testing, and CI workflows.
  • Examples that illustrate end-to-end package development workflows in real-world scenarios.

Quick Start

Follow these preferences to initialize an R package project with consistent style, documentation, and testing workflows.

Frequently Asked Questions about r-package

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

FAQPage Schema
What are the best naming conventions for R package development?

R package development naming conventions standardize data, transformation, and IO functions to improve readability. Consistent naming across these function types ensures maintainable code and clear package structure for individual developers and teams.

How do I structure roxygen2 documentation for an R package?

Roxygen2 documentation for R packages should be minimal but complete, driving the public API documentation with examples. It enforces documentation standards by replacing manual comments with inline code tags for public functions.

How do I set up CI workflows for R package testing?

CI workflows for R package testing integrate standardized testing workflows into the package lifecycle. This ensures continuous quality checks by automating test execution across typical package development stages.

Does this R package workflow support vignette creation?

Yes, the R package workflow provides specific guidance on vignettes alongside package structure and testing. This ensures end-to-end package development workflows include proper documentation examples for real-world scenarios.

Can I use this R package style guide for an existing codebase?

Yes, the R package style guide codifies preferred coding style and documentation practices into a reusable playbook. It applies to package authors seeking standardized workflows across typical package lifecycles, regardless of project age.