Skip to contents

Convenience wrapper that filters an existing catalog (or builds one) using a substring/regex match over common columns.

Usage

artifact_catalog_search(
  catalog = NULL,
  query = NULL,
  fields = c("path", "stage", "field", "row_key"),
  ignore_case = TRUE,
  run_status = NULL,
  params = NULL,
  ...
)

Arguments

catalog

Optional catalog tibble from artifact_catalog.

query

Regex (passed to grepl()).

fields

Character vector of fields to search (defaults to path/stage/field/row_key).

ignore_case

Whether to ignore case.

run_status

Optional character vector of run statuses to filter on (e.g. "complete", "running"). NULL (default) keeps all rows.

params

Optional named list of parameter values to filter on. Only rows whose sidecar parameters match all supplied key-value pairs are returned.

...

Passed to artifact_catalog when catalog is NULL.

Value

Filtered tibble.

Examples

if (FALSE) { # \dontrun{
artifact_catalog_search("model", type = "rds")
} # }