You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Abort(sprintf("`nrow(x)==0L`, representing a data set history with no row up through the latest observed version, but we don't have a sensible guess at what version that is, or whether any of the empty versions might be clobbered in the future; if we use `x` to form an `epi_archive`, then `clobberable_versions_start` and `observed_versions_end` must be manually specified."),
76
+
Abort(sprintf("`nrow(x)==0L`, representing a data set history with no row up through the latest observed version, but we don't have a sensible guess at what version that is, or whether any of the empty versions might be clobbered in the future; if we use `x` to form an `epi_archive`, then `clobberable_versions_start` and `versions_end` must be manually specified."),
77
77
class="epiprocess__max_version_cannot_be_used")
78
78
} else {
79
79
version_col=purrr::pluck(x, "version") # error not NULL if doesn't exist
@@ -130,7 +130,7 @@ next_after.Date = function(x) x + 1L
130
130
#'
131
131
#' In general, the last version of each observation is carried forward (LOCF) to
132
132
#' fill in data between recorded versions, and between the last recorded
133
-
#' update and the `observed_versions_end`. One consequence is that the `DT`
133
+
#' update and the `versions_end`. One consequence is that the `DT`
134
134
#' doesn't have to contain a full snapshot of every version (although this
135
135
#' generally works), but can instead contain only the rows that are new or
136
136
#' changed from the previous version (see `compactify`, which does this
@@ -211,7 +211,7 @@ epi_archive =
211
211
time_type=NULL,
212
212
additional_metadata=NULL,
213
213
clobberable_versions_start=NULL,
214
-
observed_versions_end=NULL,
214
+
versions_end=NULL,
215
215
#' @description Creates a new `epi_archive` object.
216
216
#' @param x A data frame, data table, or tibble, with columns `geo_value`,
217
217
#' `time_value`, `version`, and then any additional number of columns.
@@ -233,7 +233,7 @@ epi_archive =
233
233
#' carried forward (LOCF) to interpolate between the version data provided,
234
234
#' rows that don't change these LOCF results can potentially be omitted to
235
235
#' save space while maintaining the same behavior (with the help of the
236
-
#' `clobberable_versions_start` and `observed_versions_end` fields in some
236
+
#' `clobberable_versions_start` and `versions_end` fields in some
237
237
#' edge cases). `TRUE` will remove these rows, `FALSE` will not, and missing
238
238
#' or `NULL` will remove these rows and issue a warning. Generally, this can
239
239
#' be set to `TRUE`, but if you directly inspect or edit the fields of the
@@ -243,7 +243,7 @@ epi_archive =
243
243
#' potential for space, time, or bandwidth savings upstream the data pipeline,
244
244
#' e.g., when fetching, storing, or preparing the input data `x`
245
245
#' @param clobberable_versions_start Optional; as in [`as_epi_archive`]
246
-
#' @param observed_versions_end Optiona; as in [`as_epi_archive`]
246
+
#' @param versions_end Optional; as in [`as_epi_archive`]
cat(sprintf("Data archive (stored in DT field): %i x %i\n",
428
428
nrow(self$DT), ncol(self$DT)))
@@ -458,8 +458,8 @@ epi_archive =
458
458
if (is.na(max_version)) {
459
459
Abort("`max_version` must not be NA.")
460
460
}
461
-
if (max_version>self$observed_versions_end) {
462
-
Abort("`max_version` must be at most `self$observed_versions_end`.")
461
+
if (max_version>self$versions_end) {
462
+
Abort("`max_version` must be at most `self$versions_end`.")
463
463
}
464
464
if (!is.na(self$clobberable_versions_start) &&max_version>=self$clobberable_versions_start) {
465
465
Warn('Getting data as of some "clobberable" version that might be hotfixed, synced, or otherwise replaced later with different data using the same version tag. Thus, the snapshot that we produce here might not be reproducible later. See `?epi_archive` for more info and `?epix_as_of` on how to muffle.',
0 commit comments