Wickham, Hadley
R Packages: Organize, Test, Document, and Share Your Code
- ISBN 13:
- 9781098134945
- author:
- Wickham, Hadley
- format:
- Paperback
- publisher:
- O'Reilly Media
- language:
- English
- Publication Year:
- 2023
- Pages:
- 381
- Dimensions:
- 23.3 x 17.8 x 2 centimetres (0.6
- Genre:
- Computers, Programming, General,
- Condition:
- New
- Availability:
- Item usually sent within 10 working days
Description
Turn your R code into reusable packages that others can easily install and use. This fully updated edition helps developers and data scientists learn how to bundle their R functions, sample data, and documentation together using the package development philosophy used by the team behind the "tidyverse" suite of packages. With this book, you'll learn how to automate common development tasks using a set of R packages, including devtools, usethis, testthat, and roxygen2. You'll create packages quickly, then develop greater mastery of their structure over time. The authors guide you through the key components of an R package, including code, documentation, and tests, as well as effective habits for organizing your functions. As you progress, you'll learn about important new features in the devtools ecosystem, unit testing with testthat, and how to turn your existing documentation into a user-friendly website with pkgdown. You'll also gain an appreciation of the benefits of modern code hosting platforms like GitHub.