R/outpack_checksum.R

Defines functions outpack_checksum

## TODO: I am not sure we need to keep this; it's not used anywhere at
## present. It might have been intended for the R-backed server, now
## defunct?
outpack_checksum <- function(hash_algorithm = NULL, root = NULL) {
  root <- root_open(root, require_orderly = FALSE)
  hash_algorithm <- hash_algorithm %||% root$config$core$hash_algorithm

  ## Don't use the index ever here; we want to always read this from
  ## disk.
  ids <- sort(dir(file.path(root$path, ".outpack", "metadata")))
  hash_data(paste(ids, collapse = ""), hash_algorithm)
}

Try the orderly package in your browser

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

orderly documentation built on Jan. 24, 2026, 1:07 a.m.