How to read knitr/Rmd cache in interactive session?

后端 未结 3 1282
无人及你
无人及你 2020-12-15 20:56

I have an Rmd file with a lot of cached code chunks.

Now I want to keep developing that script using an interactive session to play around and test diff

3条回答
  •  醉梦人生
    2020-12-15 21:35

    I think that running library("knitr"); knit("foo.Rmd") in the console/R session is the easiest way to do this, although it will rewrite foo.md, figures, etc.. (Too busy/lazy to test it at the moment.)

    You could probably poke around in the cache directory and read the cached files directly, but that would be a lot more work/trickier.

提交回复
热议问题