Skip to content

Commit 52b5930

Browse files
brookslogandsweber2
authored andcommitted
Iterate on archive R6 docs
1 parent 1d2cb93 commit 52b5930

File tree

2 files changed

+34
-30
lines changed

2 files changed

+34
-30
lines changed

R/archive.R

+17-15
Original file line numberDiff line numberDiff line change
@@ -207,21 +207,22 @@ epi_archive =
207207
#####
208208
public = list(
209209
#' @field DT (`data.table`)\cr
210-
#' the compressed datatable
210+
#' the (optionally compactified) datatable
211211
DT = NULL,
212-
#' @field geo_type (`character()`)\cr
212+
#' @field geo_type (string)\cr
213213
#' the resolution of the geographic label (e.g. state)
214214
geo_type = NULL,
215-
#' @field time_type (`character()`)\cr
215+
#' @field time_type (string)\cr
216216
#' the resolution of the time column (e.g. day)
217217
time_type = NULL,
218-
#' @field additional_metadata (`list()`)\cr
218+
#' @field additional_metadata (named list)\cr
219219
#' any extra fields, such as `other_keys`
220220
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
223224
clobberable_versions_start = NULL,
224-
#' @field versions_end (`Date()`)\cr
225+
#' @field versions_end (length-1 of same type&class as `version` column)\cr
225226
#' the latest version observed
226227
versions_end = NULL,
227228
#' @description Creates a new `epi_archive` object.
@@ -417,9 +418,10 @@ epi_archive =
417418
self$clobberable_versions_start = clobberable_versions_start
418419
self$versions_end = versions_end
419420
},
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
423425
print = function(class = TRUE, methods = TRUE) {
424426
if (class) cat("An `epi_archive` object, with metadata:\n")
425427
cat(sprintf("* %-9s = %s\n", "geo_type", self$geo_type))
@@ -467,15 +469,15 @@ epi_archive =
467469
#' @description Generates a snapshot in `epi_df` format as of a given version.
468470
#' See the documentation for the wrapper function [`epix_as_of()`] for details.
469471
#' @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
471473
#' snapshot. That is, the snapshot will comprise the unique rows of the
472474
#' 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
476478
#' the snapshot. Default is `-Inf`, which effectively means that there is no
477479
#' 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
479481
#' `epi_archive` format, and contain rows in the specified `time_value` range
480482
#' having `version <= max_version`. The resulting object will cover a
481483
#' potentially narrower `version` and `time_value` range than `x`, depending

man/epi_archive.Rd

+17-15
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)