View source: R/run_or_readRDS.R
run_or_readRDS | R Documentation |
A kind of hack cache-ing function that I use in my notebook for convenience. Will read in an RDS object at the specified path if it exists, otherwise will run the specified function.
run_or_readRDS(path, f, verbose = TRUE, overwrite = FALSE)
path |
a path to look for an RDS object with the saved results |
f |
a function that will output results that you want saved |
verbose |
boolean specifying verbosity |
a tibble
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.