cache_FUN: Title

View source: R/functions_file_helpers.R

cache_FUNR Documentation

Title

Description

Title

Usage

cache_FUN(
  x,
  input_name,
  output_tag,
  FUN,
  input_obj = input_name,
  saveFUN = saveRDS,
  loadFUN = readRDS
)

Arguments

x

a bioc cache

input_name

path to file FUN works on

output_tag

character. Used to create cache result identifier (rname). New rname will be either 1) the result of adding this tag to rname of input_name if input_name is cached or 2) the result of adding this tag to basename of input_name if uncached. If this new rname exists in cache, cached result will be used and FUN will not be rerun.

FUN

function that accepts one file path as it's only argument. the output of FUN(input_name) will be returned, either from running or cached if available.

Value

object returned by FUN(input_obj)


jrboyd/ssvRecipes documentation built on May 22, 2022, 7:07 a.m.