Skip to contents

Returns the registry as a tibble. Optionally filterable by source. Output drives consumer-side config authoring: callers (e.g. link's lnk_load_overrides()) use this to know what entries crate can handle.

Usage

crt_files(source = NULL)

Arguments

source

Character or NULL. If supplied, filter to entries with that source family code (e.g. "bcfp"). NULL returns all entries.

Value

A tibble with columns source, file_name, handler_fn, schema_yaml, canonical_cols.

See also

crt_ingest() to actually ingest a registered file.

Examples

# All registered (source, file_name) entries
crt_files()
#> # A tibble: 1 × 5
#>   source file_name                   handler_fn       schema_yaml canonical_cols
#>   <chr>  <chr>                       <chr>            <chr>       <chr>         
#> 1 bcfp   user_habitat_classification crt_handler_bcf… schemas/bc… blue_line_key…

# Filter to bcfp-sourced entries
crt_files(source = "bcfp")
#> # A tibble: 1 × 5
#>   source file_name                   handler_fn       schema_yaml canonical_cols
#>   <chr>  <chr>                       <chr>            <chr>       <chr>         
#> 1 bcfp   user_habitat_classification crt_handler_bcf… schemas/bc… blue_line_key…

# Bogus source filter returns an empty tibble (not an error)
crt_files(source = "nonexistent")
#> # A tibble: 0 × 5
#> # ℹ 5 variables: source <chr>, file_name <chr>, handler_fn <chr>,
#> #   schema_yaml <chr>, canonical_cols <chr>