
List registered (source, file_name) entries crate knows how to ingest
Source:R/crt_files.R
crt_files.RdReturns 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.
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>