get_or_make: Make an object if it is not available from provided file

View source: R/functions.R

get_or_makeR Documentation

Make an object if it is not available from provided file

Description

Make an object if it is not available from provided file

Usage

get_or_make(save_file, force_new = FALSE, fn, ...)

Arguments

save_file

Character. Path to file. This will be loaded to object if it exists

force_new

Logical. If TRUE, run function irrespective of existence of saveFile. Otherwise, only run fn if saveFile does not exist.

fn

Function. Function to make the object if it saveFile does not exist

...

Arguments to function.

Value

Dataframe. Also, file if it did not previously exist.


Acanthiza/envFunc documentation built on Aug. 19, 2024, 4:50 a.m.