@@ -207,21 +207,22 @@ epi_archive =
207
207
# ####
208
208
public = list (
209
209
# ' @field DT (`data.table`)\cr
210
- # ' the compressed datatable
210
+ # ' the (optionally compactified) datatable
211
211
DT = NULL ,
212
- # ' @field geo_type (`character()` )\cr
212
+ # ' @field geo_type (string )\cr
213
213
# ' the resolution of the geographic label (e.g. state)
214
214
geo_type = NULL ,
215
- # ' @field time_type (`character()` )\cr
215
+ # ' @field time_type (string )\cr
216
216
# ' the resolution of the time column (e.g. day)
217
217
time_type = NULL ,
218
- # ' @field additional_metadata (` list()` )\cr
218
+ # ' @field additional_metadata (named list)\cr
219
219
# ' any extra fields, such as `other_keys`
220
220
additional_metadata = NULL ,
221
- # ' @field clobberable_versions_start (`Date()`)\cr
222
- # ' the earliest date that new data should overwrite existing data
221
+ # ' @field clobberable_versions_start (length-1 of same type&class as `version` column, or `NA`)\cr
222
+ # ' the earliest version number that might be rewritten in the future without assigning a new version
223
+ # ' date/number, or `NA` if this won't happen
223
224
clobberable_versions_start = NULL ,
224
- # ' @field versions_end (`Date()` )\cr
225
+ # ' @field versions_end (length-1 of same type&class as `version` column )\cr
225
226
# ' the latest version observed
226
227
versions_end = NULL ,
227
228
# ' @description Creates a new `epi_archive` object.
@@ -417,9 +418,10 @@ epi_archive =
417
418
self $ clobberable_versions_start = clobberable_versions_start
418
419
self $ versions_end = versions_end
419
420
},
420
- # ' print archive
421
- # ' @param class print the class label
422
- # ' @param methods print all available methods of the archive
421
+ # ' Print information about an archive
422
+ # ' @param class Boolean; whether to print the class label header
423
+ # ' @param methods Boolean; whether to print all available methods of
424
+ # ' the archive
423
425
print = function (class = TRUE , methods = TRUE ) {
424
426
if (class ) cat(" An `epi_archive` object, with metadata:\n " )
425
427
cat(sprintf(" * %-9s = %s\n " , " geo_type" , self $ geo_type ))
@@ -467,15 +469,15 @@ epi_archive =
467
469
# ' @description Generates a snapshot in `epi_df` format as of a given version.
468
470
# ' See the documentation for the wrapper function [`epix_as_of()`] for details.
469
471
# ' @param x An `epi_archive` object
470
- # ' @param max_version Time value specifying the max version to permit in the
472
+ # ' @param max_version Version specifying the max version to permit in the
471
473
# ' snapshot. That is, the snapshot will comprise the unique rows of the
472
474
# ' current archive data that represent the most up-to-date signal values, as
473
- # ' of the specified `max_version` (and whose time values are at least
474
- # ' `min_time_value`.)
475
- # ' @param min_time_value Time value specifying the min time value to permit in
475
+ # ' of the specified `max_version` (and whose `time_value`s are at least
476
+ # ' `min_time_value`).
477
+ # ' @param min_time_value Time value specifying the min `time_value` to permit in
476
478
# ' the snapshot. Default is `-Inf`, which effectively means that there is no
477
479
# ' minimum considered.
478
- # ' @param all_versions If `all_versions = TRUE`, then the output will be in
480
+ # ' @param all_versions Boolean; If `all_versions = TRUE`, then the output will be in
479
481
# ' `epi_archive` format, and contain rows in the specified `time_value` range
480
482
# ' having `version <= max_version`. The resulting object will cover a
481
483
# ' potentially narrower `version` and `time_value` range than `x`, depending
0 commit comments