How to read knitr/Rmd cache in interactive session?

后端 未结 3 1299
无人及你
无人及你 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:47

    Internally, knitr uses lazyLoad to load cached results, and so can you:

    lazyLoad('knitr_cache_dir/chunk_2c7d6b477306be1d4d4ed451f2f1b52a')
    

    Make sure to supply the filename without the suffix.

提交回复
热议问题