Learn R Programming

RKorAPClient (version 1.4.0)

blessCacheAs: Vouch for a cacheAs file that an older version wrote

Description

Association scores changed in 1.4.0, so files from before it are recomputed rather than used (see cacheAs). Where a file is known to hold what this version would compute - because it was written by a development version that already had the corrections, for instance - this records that, and the file is used again as it is.

Usage

blessCacheAs(cacheAs)

Value

the paths, invisibly

Arguments

cacheAs

paths of the files to vouch for, with or without their .rds extension

Details

What actually wrote a file is left as it stands; the blessing is recorded beside it, so that cacheAsInfo() keeps telling the truth about where the numbers come from.

A file that records no parameters, as those written before 1.3.0.9000 do, has nothing left to be compared against a call once it is blessed, and is therefore reused for any call that names it. Bless such a file only if that is what you mean.

See Also

Other cacheAs: cacheAsInfo(), withCachedResults()

Examples

Run this code
if (FALSE) {
blessCacheAs("klima-ca.rds")
blessCacheAs(list.files("data", pattern = "\\.rds$", full.names = TRUE))
}

Run the code above in your browser using DataLab