6.6 Understanding when code is executed

When the binary package is built (often, by CRAN) all the code in R/ is executed and the results are saved.

Later cached results are re-loaded and made available for use by loading the package with library() function.

Play special attention to any R code outside of a function.