r-package-dev

Streamline R package development from scaffolding through release with usethis and testthat.

6|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/blankuzr/R-Skills --skill r-package-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-package-dev
Source: https://github.com/blankuzr/R-Skills/tree/main/gpt/skills/r-package-dev
Command: npx skills add https://github.com/blankuzr/R-Skills --skill r-package-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

Develop and maintain R packages with package-aware scaffolding, testing, checks, changelogs, contributor environments, and release hygiene to reduce repetitive setup and ensure consistent workflows.

Core Features & Use Cases

  • Scaffolding & project setup: quickly initialize R packages with standard structure, documentation, and tooling.
  • Testing & validation: integrate testthat workflows to keep changes robust and verifiable.
  • Release hygiene: manage changelogs, versioning, and release notes for reliable publishing.
  • Contributor environments: reproduce development setups for collaborators and CI.
  • Use Case: a maintainer adds a feature to an existing package and uses this skill to scaffold, test, document, and prepare the release PR.

Quick Start

Initialize a new R package project using usethis and testthat workflow and run the test suite.

Frequently Asked Questions about r-package-dev

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

FAQPage Schema
How do I scaffold a new R package with usethis and testthat?

You can scaffold a new R package using usethis to generate the standard directory structure and testthat to integrate robust testing workflows, ensuring consistent project setup and reliable validation.

How do I maintain changelogs and versioning for R package releases?

Maintaining changelogs and versioning for R package releases involves managing release notes and version bumps to ensure reliable publishing and release hygiene across the project lifecycle.

How do I standardize contributor environments and CI checks for R packages?

You can standardize contributor environments by using renv to lock dependencies and configuring CI checks to automatically validate package builds across the project lifecycle.

Can I use this workflow to add a feature to an existing R package?

Yes, the workflow supports existing R packages by applying package-aware scaffolding to add features, running testthat validation, updating documentation, and preparing the release PR.

What is the best way to prepare an R package development PR?

The best way to prepare an R package development PR is to enforce a package-organization contract with usethis, validate changes using testthat, and update changelogs and versioning to ensure release hygiene.

Does R package development with usethis require renv for local environments?

R package development with usethis does not strictly require renv, but integrating renv standardizes contributor environments by reproducing development setups and ensuring consistent dependency management for collaborators.