Cache chunks in RStudio when NOT knitting reports


#1

Setting a chunk option to cache=TRUE will speed up knitting a html report from a Rmd file, but is there a way to cache a time-intensive chunk while using the "Run All Chunks Above" icon in RStudio? This would be very useful for iterative EDA sessions in RStudio.

```{r cache=TRUE}
ds <- read_rds(file_that_is_very_large)
```

#2

Just an FYI, if you want to include the three ticks, such as in cases like this to show an Rmd chunk, you can enclose the chunk (three backticks included) with 4 backticks!