Philosophy behind the tools of R Package development

  • Anything that can be automated, should be automated.
  • Use functions for package development, avoid doing it by hand.
    • To do this, we need to learn the functions/workflow.
    • Our thinking should be on what we want the package to do, not on how to organize a package.
    • This is where the devtools and usethis package come into play.
    • Tools to insulate us from the low-level details of how packages are built.
  • devtools works nicely with RStudio, so that’s the development environment we will use.
install.packages(c("devtools", "usethis"))