R packages
This is the book site for “R packages”. It was published with O’Reilly in April 2015. You can order a copy from Amazon.
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 section 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.
- Getting started
- Introduction
- Package structure
- Package components
-
Code (
R/) -
Package metadata (
DESCRIPTION) -
Object documentation (
man/) -
Vignettes (
vignettes/) -
Testing (
tests/) -
Namespaces (
NAMESPACE) -
Data (
data/) -
Compiled code (
src/) -
Installed files (
inst/) - Other components
- Best practices
- Git and GitHub
- Checking
- Release
