What problem does it solve?
Ensuring high-quality, maintainable, and testable R code for data analysis can be challenging without adherence to best practices and modern tooling. This Skill guides you in building reliable R solutions.
Core Features & Use Cases
- R 4.4+ Best Practices: Enforces modern R programming standards for clean, efficient, and reproducible data analysis.
- Test-Driven Development (TDD): Integrates
testthat 3.2 for robust unit testing and lintr 3.2 for automated code quality checks.
- Quality Gates: Supports maintaining high test coverage (≥85%) and adhering to TRUST 5 principles for reliable and secure code.
- Use Case: When developing a new data analysis script, use this Skill to guide you through writing tests first, then implementing the R code, and finally linting it to ensure high quality, maintainability, and adherence to best practices.
Quick Start
"I need to write an R script for data cleaning. Guide me on setting up a TDD workflow with testthat and lintr."