Setting up caching with packrat with the following command.
#Optional to set location of cache, may be useful if we want a global cache for shiny deployment? Can be saved in .Renviron, I think.
#Sys.setenv(R_PACKRAT_CACHE_DIR = "/home/willbowditch/R/packratcache")
packrat::set_opts(use.cache=TRUE)