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