Skip to contents

Lists all versions of objects for a given project and entity within the Gradient datalake (AWS S3). Extracts tags from object keys (e.g. wave=a/type=raw/.rds) and returns them as tidy columns. Supports multi-tag filtering and environment selection.

Usage

dl_ls_versions(
  entity = NULL,
  ...,
  layer = NULL,
  verbose = TRUE,
  project = dl_get_project(),
  env = "prod"
)

Arguments

entity

Optional character scalar defining the entity (e.g. "data/srv_main"). If NULL, lists all entities.

...

Named tag arguments (tag = value).

  • wave A character vector specifying the waves to filter on.

  • type A character vector specifying the types to filter on.

  • name A character vector specifying the names to filter on.

  • version A character vector specifying the versions to filter on.

  • batch A character vector specifying the batches to filter on.

  • source A character vector specifying the sources to filter on.

layer

Optional filter for top-level folder (e.g. "data").

verbose

Logical. If TRUE, prints informational messages.

project

Character scalar defining the project name. If NULL, inferred from the DESCRIPTION file.

env

Environment of the datalake to use ("prod" or "test"). Defaults to "prod". "prod" = g6tr-dl, "test" = g6tr-dl-test.

Value

A tibble of class dl_ls with metadata, tags, and version information.

Examples

if (FALSE) { # \dontrun{
dl_ls_versions("data/srv_main", env = "test")
dl_ls_versions(env = "test", project = "bastion")
} # }