Packages are the fundamental way to document, share, and distribute R code and data. Our goal is to write our own package. As a fair warning, this chapter is particularly complex because of the many software tools that are employed during R package development.
In this chapter, we make use of several packages. The devtools package [32] provides functions to help set up, document, and manage the development of an R package. The devtools package in turn installs and loads ...