inst/migrate/1.1.25.R

migrate <- function(data, path, config) {
  if (is.null(data$meta$elapsed)) {
    ## Very old versions of orderly (pre 0.5.0) do not include elapsed
    ## time, but that does include old reports in montagu.  So we need
    ## to make sure that they report something sensible here.
    data$meta$elapsed <- 0
    changed <- TRUE
  } else {
    changed <- FALSE
  }
  migration_result(changed, data)
}

Try the orderly package in your browser

Any scripts or data that you put into this service are public.

orderly documentation built on Sept. 22, 2021, 5:09 p.m.