developing-packages-r

Guide R package development with tidyverse patterns and error handling.

61|6|Updated Jan 11, 2026
One-click install
npx skills add https://github.com/jeremy-allen/claude-skills --skill developing-packages-r-jeremy-allen
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: developing-packages-r
Source: https://github.com/jeremy-allen/claude-skills/tree/main/developing-packages-r
Command: npx skills add https://github.com/jeremy-allen/claude-skills --skill developing-packages-r-jeremy-allen

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill streamlines the process of creating and maintaining high-quality R packages, ensuring they are robust, user-friendly, and follow modern best practices.

Core Features & Use Cases

  • Dependency Management: Guidance on when to use external packages versus base R.
  • API Design: Best practices for creating intuitive and consistent R package APIs using tidyverse patterns.
  • Input Validation & Error Handling: Strategies for robustly validating inputs and providing clear, actionable error messages.
  • Internal vs. Exported Functions: Clear guidelines on managing function visibility for maintainability.
  • Testing & Documentation: Priorities and patterns for effective testing and documentation.

Quick Start

Use the developing-packages-r skill to understand how to manage dependencies for an R package.

Frequently Asked Questions about developing-packages-r

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

FAQPage Schema
What's the best way to structure an R package API using tidyverse patterns?

Designing an R package API with tidyverse patterns involves creating intuitive, consistent function interfaces. This skill guides you through managing function visibility by separating internal helpers from exported functions to improve maintainability and user experience.

How do I handle error messages and input validation in R package development?

Handle error messages and input validation in R package development by using cli and rlang. This skill provides strategies for robustly validating user inputs and generating clear, actionable error messages for software engineering workflows.

How do I manage dependencies when building an R package?

Manage dependencies when building an R package by evaluating when to use external packages versus base R. This skill offers dependency strategy guidance to balance functionality with installation footprint for robust package maintenance.

What testing levels and documentation priorities should I follow for R package maintenance?

Testing levels and documentation priorities for R package maintenance ensure long-term stability. This skill outlines effective testing patterns and documentation practices to maintain high-quality, user-friendly R packages for data analysis workflows.

Do I need to use the tidyverse to develop a robust R package?

You do not need to use the tidyverse to develop a robust R package, but doing so provides modern patterns for API design and error handling. This skill uses tidyverse conventions to streamline package creation and maintenance.

When should I export a function versus keeping it internal in my R package?

Export a function when it defines your package's public API, and keep it internal for implementation details. This skill provides clear guidelines on managing function visibility to ensure maintainable and user-friendly R packages.