Turn your R code into packages that others can easily download and use. This practical book shows you how to bundle reusable R functions, sample data, and documentation together by applying author Hadley Wickham’s package development philosophy. In the process, you’ll work with devtools, roxygen, and testthat, a set of R packages that automate common development tasks. Devtools encapsulates best practices that Hadley has learned from years of working with this programming language. Ideal for developers, data scientists, and programmers with various backgrounds, this book starts you with the basics and shows you how to improve your package writing over time. You’ll learn to focus on what you want your package to do, rather than think about package structure.
THE book you have to read if you develop your own statistical package for R. Like Advanced R, it is also available online for free at http://r-pkgs.had.co.nz/
Built my first R package at work using this book! Still need to come back to it for learning more about CI/CD and automated testing. Didn't have much use-case for that in my package.
This book is the one-stop-solution for anyone trying to learn about how to build R packages using RStudio, ROxygen, devtools, and usethis! Use it like a referential textbook and go back to it as you build your own package.
Excellent book for beginners and advanced useRs alike; gives great background on writing packages in R and the CRAN submission process.
Although the print version is slightly out-of-date, Hadley Wickham has the book available to read online free of charge (legally) and completely up-to-date.
I used to be terrified of writing R packages, but it is actually really simple using the step-by-step instructions in this book. Highly recommended for anyone looking to share their R code through a package.
Superbly written in a nice and simple way. An essential read for any Reason user who wants to share code with their peers in open source or within their organisation.
Excellent. All hail the Wickham. Used this as a resource as I was trying to re-implement an existing hand-tooled package that I wrote a few years ago with nothing more than a text editor. Now I'm using RStudio, devtools, Git and GitHub, Roxygen2, clearing all the checks with not even notes, and I'm feeling much better about being able to confidently enhance the package going forward.
There were a few issues that kept me from going to five stars (mainly around when you follow the instructions, and things don't work), but overall, if you're building packages, this is pretty indispensable.
Very good and thorough introduction to creating packages in R. Hadley de-mystifies R and makes it very easy to set up your first package on your computer. Since creating a package is so simple with this book and RStudio, getting a package on CRAN is more complicated than I had envisioned. But he is one of the best people to guide you through the process.
A comprehensive book on creating your own packages in R. Since it gives a good understanding of the internals of R packages, it is a book worth reading, even if you do not plan to build an R packages soon.