Skip to contents

Creates (or refreshes) the server-side archive and writes the .tar.gz bytes to dest. Use daggle_verify_archive() afterwards to confirm integrity.

Usage

daggle_archive_run(
  name,
  run_id,
  dest = tempfile(fileext = ".tar.gz"),
  base_url = NULL
)

Arguments

name

Character string. Name of the DAG.

run_id

Character string. Run ID, or "latest" for the most recent.

dest

Character string. Local file path to write the archive to. Defaults to a temporary file with extension .tar.gz.

base_url

Base URL of the daggle API. See Details.

Value

The absolute path to dest, returned invisibly.

Details

This is the first wrapper in daggleR that returns a binary response. Future binary downloads should mirror this shape: resolve the base URL with resolve_base_url(), build the request directly via httr2::request() and httr2::req_url_path_append() (skipping daggle_request(), which always parses the response as JSON), then persist with writeBin() on httr2::resp_body_raw().