Does cache work with R notebooks or only Rmd files w/ knitr?

I'm trying to avoid re-running computationally intensive or time-consuming steps. I know that is what cache=TRUE is for, but I can't seem to find any info on whether this works with interactive R Notebooks or just knitted docs.

For example, at the top of my R notebook, I have

knitr::opts_chunk$set(echo=FALSE, include = FALSE, warning=FALSE, message=FALSE, cache.lazy = FALSE)

Load in Data <- Read10X_h5("../../results/cellbender_outs/D1/output_filtered.h5") <- Read10X_h5("../../results/cellbender_outs/D2/output_filtered.h5") <- Read10X_h5("../../results/cellbender_outs/V2/output_filtered.h5")

I'd like to avoid re-loading those data every time I "Run All" with the notebook chunks.

How would I do this?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.