What problem does it solve?
This Skill provides a structured, step-by-step process for deprecating R functions or parameters, ensuring consistency, clear communication to users, and proper maintenance of R packages.
Core Features & Use Cases
- Guided Deprecation Workflow: Follows best practices for marking functions/parameters as deprecated.
- Automated Warnings: Integrates with
lifecycle::deprecate_warn() to notify users.
- Documentation Updates: Guides on updating Roxygen documentation with deprecation badges and examples.
- Testing Integration: Includes steps for silencing existing tests and adding new tests for deprecation warnings.
- NEWS.md Entries: Ensures proper logging of deprecation in package changelogs.
- Use Case: When preparing to remove an older function in your R package, use this skill to systematically update its code, documentation, and tests to inform users and facilitate migration to a new replacement function.
Quick Start
Use the tidy-deprecate-function skill to deprecate the old_function() in favor of new_function().