R/source_manifest.R

Defines functions duckhts_source_manifest duckhts_read_source_manifest

# The bundled package manifest is the installed copy of src/duckhts_sources.tsv.
# Keep source inventory consumers on this one receipt instead of maintaining
# another R-only list.

duckhts_read_source_manifest <- function(manifest) {
  if (!file.exists(manifest)) {
    stop("DuckHTS source manifest not found: ", manifest, call. = FALSE)
  }
  utils::read.delim(
    manifest,
    sep = "|",
    header = FALSE,
    col.names = c("repo_path", "package_path"),
    stringsAsFactors = FALSE,
    quote = "",
    comment.char = ""
  )
}

duckhts_source_manifest <- function() {
  duckhts_read_source_manifest(
    file.path(duckhts_extension_dir(), "duckhts_sources.tsv")
  )
}

Try the Rduckhts package in your browser

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

Rduckhts documentation built on Oct. 25, 2026, 1:08 a.m.