r-lib-package-dev

Automates the R package development workflow with devtools and roxygen2.

1|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/nq-rdl/agent-extensions --skill r-lib-package-dev
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: r-lib-package-dev
Source: https://github.com/nq-rdl/agent-extensions/tree/main/skills/r-lib-package-dev
Command: npx skills add https://github.com/nq-rdl/agent-extensions --skill r-lib-package-dev

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Orchestrates the full lifecycle of R package development, including project setup, directory structure, devtools workflow, documentation with roxygen2, code formatting with air, NEWS.md conventions, and CRAN readiness.

Core Features & Use Cases

  • End-to-end R package development with devtools and roxygen2, following standard conventions.
  • Delegation to specialist skills for testing (r-lib-testing), user-facing messages (r-lib-cli), deprecation/versioning (r-lib-lifecycle), and CRAN extrachecks (r-lib-cran-extrachecks).
  • Guidance on building, documenting, testing, and preparing packages for distribution, with emphasis on project structure and coding conventions.

Quick Start

Initialize your R package project using the standard structure and tooling described above.

Frequently Asked Questions about r-lib-package-dev

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

FAQPage Schema
How do I set up an R package project structure for CRAN submission?

To set up an R package for CRAN submission, initialize your project with standard directory structures and tooling. This orchestrates the full lifecycle, applying devtools conventions, roxygen2 documentation, and CRAN readiness checks.

What's the best way to manage R package development workflows with devtools?

Managing R package development with devtools involves following standard conventions for building, documenting, and testing. This orchestrates the workflow end-to-end, delegating specialized tasks like testing to dedicated tools.

How does roxygen2 documentation integrate into R package lifecycle management?

Roxygen2 documentation integrates into R package lifecycle management by automating the generation of Rd files from inline comments. It supports standard workflows alongside devtools for building and preparing packages.

Do I need testthat to prepare my R package for CRAN submission?

You need testthat to prepare your R package for CRAN submission because it provides the testing framework required by standard conventions. This workflow delegates testing operations to ensure package reliability.

Can I format R package code automatically before a CRAN release?

You can format R package code automatically before a CRAN release using air formatting. This orchestrates code formatting within the package development lifecycle to ensure coding conventions are met.

When do I need NEWS.md conventions for R package development?

You need NEWS.md conventions for R package development when preparing package distribution and versioning. It is part of the standard project structure and lifecycle orchestration for CRAN readiness.