| Marc Kupietz | afac514 | 2026-09-08 10:37:42 +0200 | [diff] [blame] | 1 | % Generated by roxygen2: do not edit by hand |
| 2 | % Please edit documentation in R/cacheAs.R |
| 3 | \name{cacheAsInfo} |
| 4 | \alias{cacheAsInfo} |
| 5 | \title{What produced a cacheAs file} |
| 6 | \usage{ |
| 7 | cacheAsInfo(cacheAs) |
| 8 | } |
| 9 | \arguments{ |
| 10 | \item{cacheAs}{path to the file, with or without its \code{.rds} extension} |
| 11 | } |
| 12 | \value{ |
| 13 | a list with the elements \code{scoreVersion}, \code{packageVersion}, |
| 14 | \code{parameters}, \code{dots}, |
| 15 | \code{apiUrl} and \code{indexRevision}, or \code{NULL} for a file written by a version |
| 16 | before 1.4.0, which recorded none of this |
| 17 | } |
| 18 | \description{ |
| 19 | Reads back what a query function recorded in a \link{cacheAs} file: the parameters |
| 20 | it was called with, the KorAP instance it asked, the index revision that |
| 21 | instance's corpus had at the time, and the version of RKorAPClient that wrote |
| 22 | the file. Useful for saying, of a result kept next to a document, what the |
| 23 | numbers in it rest on. |
| 24 | } |
| 25 | \examples{ |
| 26 | \dontrun{ |
| 27 | KorAPConnection() |> frequencyQuery("Ameisenplage", cacheAs = "ameisenplage.rds") |
| 28 | cacheAsInfo("ameisenplage.rds") |
| 29 | } |
| 30 | |
| 31 | } |
| Marc Kupietz | c6e7736 | 2026-09-08 14:07:49 +0200 | [diff] [blame^] | 32 | \seealso{ |
| 33 | Other cacheAs: |
| 34 | \code{\link[=blessCacheAs]{blessCacheAs()}} |
| 35 | } |
| Marc Kupietz | afac514 | 2026-09-08 10:37:42 +0200 | [diff] [blame] | 36 | \concept{cacheAs} |