R Package Development Expert

•
1.9k
•

Streamlines the R package creation process with expert guidance on dependency management, tidyverse-aligned API design, and robust testing frameworks.

This skill provides a comprehensive framework for building professional-grade R packages, ensuring they adhere to modern standards used by the R community and CRAN. It offers specific guidance on balancing dependencies between Base R and the Tidyverse, implementing consistent API patterns like tidy-select and data-masking, and establishing rigorous testing protocols using testthat and snapshot testing. Designed for empirical researchers and data scientists, it helps transform scripts into maintainable, documented, and distributable software through standardized directory layouts and automated check routines.

Key Features

01Comprehensive error handling using cli and rlang packages
02Dependency strategy guidance for Base R vs. Tidyverse optimization
03Modern API design patterns including tidy-select and data-masking
04Multi-level testing protocols including unit, integration, and snapshot tests
05Standardized roxygen2 documentation and package structure layout
061,857 GitHub stars

Use Cases

01Implementing robust automated testing for data science and statistical tools
02Converting research scripts into distributable, CRAN-ready R packages
03Refactoring existing R packages to follow modern functional programming standards