Автор: Hadley Wickham, Jenny Bryan
Издательство: O’Reilly Media, Inc.
Год: 2023-04-17
Страниц: 403
Язык: английский
Формат: pdf, epub (true)
Размер: 10.2 MB
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 the package development philosophy used in the package known as the tidyverse (and beyond). In the process, you'll work with devtools, usethis, roxygen2, and testthat, a set of R packages that automate common development tasks.
Packages are the fundamental units of reproducible R code. They include reusable R functions, the documentation that describes how to use them, and sample data. In this book you’ll learn how to turn your code into packages that others can easily download and use. Writing a package can seem overwhelming at first. So start with the basics and improve it over time. It doesn’t matter if your first version isn’t perfect as long as the next version is better.
Ideal for developers and data scientists, this book gets you creating packages ASAP, then shows you how to get progressively better over time. You'll learn to focus on what you want your package to do, rather than thinking about package structure.
Learn the key components of an R package, including code, documentation, and tests.
Get tips on good style, such as organizing functions into files.
Streamline your development process with usethis, devtools, and RStudio.
Create high quality packages by combining unit tests and continuous integration on GitHub.
Maximize your chances of a positive CRAN submission.
Turn your existing documentation into a beautiful and user friendly website with pkgdown.
Скачать R Packages: Organize, Test, Document, and Share Your Code, 2nd Edition (Early Release)