
The Effective Statistician - in association with PSI R-packages - best practices and useful tools
9 snips
Mar 24, 2025 Daniel Sabanés Bové, a statistician from Roche and Google and founder of Arconis consulting, discusses the transformative power of creating R packages for code reuse and collaboration. He shares insights on overcoming common coding challenges and emphasizes that starting to write packages might happen sooner than you think. With tools like usethis and testthat, Sabanés walks through his process from idea to launch. He also highlights the vibrant R community, filled with creativity, collaboration, and fun elements like hex stickers.
AI Snips
Chapters
Books
Transcript
Episode notes
Code Reusability
- Avoid repetitive copy-pasting of code.
- Instead, create reusable functions or macros for efficiency and maintainability.
Functions vs. Packages
- Writing small, reusable functions and creating a full R package are distinct steps.
- The latter involves a more structured approach, but offers greater benefits in terms of code organization and sharing.
Early Package Creation
- Start creating an R package early in a project, even for short-term ones.
- This simplifies documentation, readability, and testing down the line.






