Skip to contents

List force-month archive versions

Usage

sl_list_versions(dir = sl_cache_dir())

Arguments

dir

A snapshot cache or bundled sample directory.

Value

A tibble with each force-month's archive, CSV hash and row count.

Examples

sl_list_versions(system.file("extdata", "sample", package = "searchlight"))
#> # A tibble: 3 × 11
#>   force_id       month archive_file snapshot_month csv_path csv_sha256 n_records
#>   <chr>          <chr> <chr>        <chr>          <chr>    <chr>          <int>
#> 1 west-yorkshire 2026… 2026-07.zip  2026-07        2026-05… aa07c0933…      1659
#> 2 west-yorkshire 2026… 2026-07.zip  2026-07        2026-06… a302977a9…      1466
#> 3 west-yorkshire 2026… 2026-07.zip  2026-07        2026-07… c72a1a84f…      1532
#> # ℹ 4 more variables: archive_sha256 <chr>, downloaded_at <dttm>, url <chr>,
#> #   source_csv_sha256 <chr>