blob: 3eec16b7300c77b9633cfbf090c00fad13c31ec3 [file] [log] [blame]
Marc Kupietzc6e77362026-09-08 14:07:49 +02001% Generated by roxygen2: do not edit by hand
2% Please edit documentation in R/cacheAs.R
3\name{blessCacheAs}
4\alias{blessCacheAs}
5\title{Vouch for a cacheAs file that an older version wrote}
6\usage{
7blessCacheAs(cacheAs)
8}
9\arguments{
10\item{cacheAs}{paths of the files to vouch for, with or without their \code{.rds}
11extension}
12}
13\value{
14the paths, invisibly
15}
16\description{
17Association scores changed in 1.4.0, so files from before it are recomputed
18rather than used (see \link{cacheAs}). Where a file is known to hold what this
19version would compute - because it was written by a development version that
20already had the corrections, for instance - this records that, and the file is
21used again as it is.
22}
23\details{
24What actually wrote a file is left as it stands; the blessing is recorded
25beside it, so that \code{\link[=cacheAsInfo]{cacheAsInfo()}} keeps telling the truth about where the
26numbers come from.
27
28A file that records no parameters, as those written before 1.3.0.9000 do, has
29nothing left to be compared against a call once it is blessed, and is
30therefore reused for any call that names it. Bless such a file only if that
31is what you mean.
32}
33\examples{
34\dontrun{
35blessCacheAs("klima-ca.rds")
36blessCacheAs(list.files("data", pattern = "\\\\.rds$", full.names = TRUE))
37}
38
39}
40\seealso{
41Other cacheAs:
Marc Kupietzc3de7022026-09-08 14:08:12 +020042\code{\link[=cacheAsInfo]{cacheAsInfo()}},
43\code{\link[=withCachedResults]{withCachedResults()}}
Marc Kupietzc6e77362026-09-08 14:07:49 +020044}
45\concept{cacheAs}