cache.info: Returns information about the cache.

Description Usage Arguments Value

Description

Utility function that returns meta data about the given cache.

Usage

1
2
3
cache.info(cache.dir = "cache", cache.name = "Cache", units = "mins",
  stale = c(hourly = hourly, daily = daily, weekly = weekly, monthly =
  monthly, yearly = yearly))

Arguments

cache.dir

the directory containing the cached files.

cache.name

name of the cache.

units

the units to use for calculate the age of the cache file.

stale

a vector of frequencies to test whether each cache file is stale according to that metric. If NULL, no info is provided.

Value

a data frame with three columns: the cached file name, the date/time created, and the age in the specified units (default is minutes).


jbryer/DataCache documentation built on May 18, 2019, 7 p.m.