I'm using GitHub Actions to render some RMarkdown files and deploy them to a website, using rmarkdown::render_site().
But some of them have some long-running code. When running locally, I can use knitr's caching to reduce runtime between different runs:
```{r, cache=TRUE}
# long running code
```
But when using GHA, the cache results are not maintained between different runs. I was wondering whether there is a way around this, to reduce running time between different workflow runs?
I know about caching R package installations (as shown here for example). Is something similar possible for knitr caches?