johnmyleswhite/ProjectTemplate — pull request #96 by jackwasey (2014-07-25 20:41:35+00:00)
Title: pass actual variable or character of var name to cache

I find it better to pass an actual variable, e.g. cache(myVar) instead of a string containing the variable name. Using deparse and substitute will allow the previous behavior, but can also find the name of a variable argument. This also allows Rstudio, etc., to autocomplete the variable name.