
Chapter 7
R Packages
An R package typically consists of a coherent collection of functions and data
structures that are suitable for addressing a particular problem. Packages
are easy to distribute and share with others, and in many ways writing a
package is the best and most effective way to share your software and ideas
with others. Learning to move away from collections of scripts, or functions,
that get sourced to software organized in packages is very enabling. Writing
your first package can be a challenge, but the second and third are simpler.
There are many advantages to writing a package, including the fact that
everyone you collaborate with can ...