Chapter 6 R code

Learning objectives:

  • Organize functions into files.
  • Maintain a consistent coding style.
  • Recognize the requirements for functions in a package.
  • Compare and contrast functions in a package versus functions in a script.
  • Use the fundamental workflows for test-driving and formally checking an in-development package.