cameronbracken / pgfSweave

Quality graphics and speedy compilation with Sweave
http://r-forge.r-project.org/projects/pgfsweave/
29 stars 6 forks source link

caching does not work properly when keep.source=TRUE #30

Closed lq closed 13 years ago

lq commented 13 years ago

When keep.source=TRUE, the expression generated by parse will have variable "srcfile" attribute by default, so the cache directory name generated by digest is essentially random.

A minimal test file:

\documentclass{article}
\begin{document}
<<keep.source=TRUE, cache=TRUE>>=
message("cache failed")
@
\end{document}
cameronbracken commented 13 years ago

Thanks for the fix!