run_or_readRDS: run_or_readRDS

View source: R/run_or_readRDS.R

run_or_readRDSR Documentation

run_or_readRDS

Description

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.

Usage

run_or_readRDS(path, f, verbose = TRUE, overwrite = FALSE)

Arguments

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

Value

a tibble


amyh25/RFunctions documentation built on Aug. 26, 2023, 4:33 p.m.