Automate package loading in R

Steven Worthington‘s wonderful ‘ipak’ R script automates the process of checking for packages, installing them if necessary, and then loading them for use. You can grab the most up-to-date version of this script from Github Gist, or the code below should update directly from the repository: