What problem does it solve?
R package development becomes error-prone when dependency choices, API contracts, validation, testing, and documentation are handled inconsistently, causing fragile releases and frustrating user experiences.
Core Features & Use Cases
- Dependency Strategy: Decide when to use base R versus external packages, and structure DESCRIPTION using Imports, Suggests, and other fields.
- API Design & Input Validation: Apply consistent API patterns (e.g., .by, {{ }}), validate inputs at the right level, and produce actionable error messages.
- Testing & Documentation Workflow: Organize testthat tests by purpose, ensure exported documentation via roxygen2, and follow a release checklist (devtools::check, test, document, versioning).
- Release Readiness & Common Pitfalls: Avoid package anti-patterns like library() calls in package code and hardcoded file paths, and finalize checks before publishing.
Quick Start
Ask an AI to review your package plan and then generate a DESCRIPTION dependency approach, roxygen2 documentation stubs for exported functions, a testthat folder layout, and a release checklist tailored to your specific R package idea.