© Matt Wiley and Joshua F. Wiley 2020
M. Wiley, J. F. WileyAdvanced R 4 Data Programming and the Cloudhttps://doi.org/10.1007/978-1-4842-5973-3_6

6. Writing Packages

Matt Wiley1  and Joshua F. Wiley2
(1)
Victoria College, Victoria, TX, USA
(2)
Monash University, Melbourne, VIC, Australia
 

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 ...

Get Advanced R 4 Data Programming and the Cloud: Using PostgreSQL, AWS, and Shiny now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.