Invalidate a chunk's cache when uncached chunk changes
问题 I have a question regarding the knitr chunk option "dependson". As far as I understood the manual this option should be used to specify which other cached chunks a cached chunk depends on. But is there a way to invalidate a chunk's cache when an uncached chunk changes? Here's a minimal example: File knitrtest.Rnw : \documentclass{article} \begin{document} <<>>= library(knitr) read_chunk("chunks.R") @ <<not_cached>>= @ <<cached, cache=TRUE, dependson="not_cached">>= @ \end{document} File