I was just working through the tutorial and noticed that the example in the tutorial does not work.
But you are correct that putting the variable name in quotes does work.
> library(ProjectTemplate)
Loading required package: testthat
Warning message:
package ‘testthat’ was built under R version 2.15.1
> setwd("~/Computing/R/letters")
> load.project()
Loading project configuration
Autoloading helper functions
Running helper script: helpers.R
Autoloading packages
Loading package: reshape2
Loading package: plyr
Loading package: ggplot2
Loading package: stringr
Loading package: lubridate
Autoloading data
Loading cached data set: first.letter.count
Loading cached data set: second.letter.count
Loading data set: letters
Warning message:
package ‘stringr’ was built under R version 2.15.1
> cache(first.letter.counts)
> cache('first.letter.counts')
> ## no error and the object was saved in ./cache
I could have sworn the latter command also gave the error previously. My mistake.
thanks,
Tom K