blob: 3eec16b7300c77b9633cfbf090c00fad13c31ec3 [file] [log] [blame]
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/cacheAs.R
\name{blessCacheAs}
\alias{blessCacheAs}
\title{Vouch for a cacheAs file that an older version wrote}
\usage{
blessCacheAs(cacheAs)
}
\arguments{
\item{cacheAs}{paths of the files to vouch for, with or without their \code{.rds}
extension}
}
\value{
the paths, invisibly
}
\description{
Association scores changed in 1.4.0, so files from before it are recomputed
rather than used (see \link{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.
}
\details{
What actually wrote a file is left as it stands; the blessing is recorded
beside it, so that \code{\link[=cacheAsInfo]{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.
}
\examples{
\dontrun{
blessCacheAs("klima-ca.rds")
blessCacheAs(list.files("data", pattern = "\\\\.rds$", full.names = TRUE))
}
}
\seealso{
Other cacheAs:
\code{\link[=cacheAsInfo]{cacheAsInfo()}},
\code{\link[=withCachedResults]{withCachedResults()}}
}
\concept{cacheAs}