I finally figured out how to use the R package "cachesweave". The trick is that the code chunks must follow some order, like the following:-----------------------------------------------------------=setCacheDir("testcache")@=library(Zelig)library(memis...