Skip to content
Prev 389268 / 398506 Next

Cacheing of functions from libraries other than the base in Rmarkdown

Chris,
Caching things that depend on libraries is known to be tricky.

Specifically, it is advised that "loading packages via library() in a cached chunk and these packages will be used by uncached chunks" is something you should not do.  I suspect that this is the problem with your inline chunk.

I have to reread things like:

	https://yihui.org/knitr/demo/cache/

and relevant parts of the manual to be sure I didn't mess something up and maybe you should look at that and the manual yet another time. 

HTH,

Chuck