dot-tooOld.Rd
.tooOld
accepts a maximum cache age and checks for an option with
that setting under MAX.CACHE.AGE
if such an argument isn't passed.
If the indicated file exists and is older than the threshold passed or
set as an option, the file is deemed "stale." If an age threshold is
provided, no check for an option is performed. If the file does not
exist or there's not an age threshold directly passed or set as an option,
the result is FALSE
.
.tooOld(pathCacheFile, lifespan = NULL)
pathCacheFile | Path to file to ask about staleness. |
---|---|
lifespan | Maximum file age before it's "stale." |
TRUE
if the file exists and its age exceeds
lifespan
if given or
getOption("MAX.CACHE.AGE")
if no age threshold is passed
and that option exists; FALSE
otherwise.