Skip to contents

Public data packages are downloaded from gh://geomarker-io/codec/ using dpkg::stow() to cache a local copy in the user's data directory.

Usage

get_codec_dpkg(codec_dpkg, overwrite = FALSE)

Arguments

codec_dpkg

name of CoDEC dpkg

overwrite

logical; re-download the remote file even though a local file with the same name exists?

Value

a CoDEC data package (see dpkg::as_dpkg())

Examples

get_codec_dpkg("drivetime-v0.2.2")
#> # [☰] drivetime-v0.2.2
#> # title: "Average Drive Time to Cincinnati Children's"
#> # homepage: https://geomarker.io/codec
#> # ℹ Use `dpkg_meta() to get all metadata
#> # A tibble: 222 × 3
#>    census_tract_id_2010 drive_time_avg  year
#>    <chr>                         <dbl> <dbl>
#>  1 39061000200                    18    2024
#>  2 39061000700                    13    2024
#>  3 39061000900                    12.9  2024
#>  4 39061001000                    12    2024
#>  5 39061001100                    12    2024
#>  6 39061001600                    12    2024
#>  7 39061001700                    12    2024
#>  8 39061001800                    12    2024
#>  9 39061001900                    12    2024
#> 10 39061002000                    12.4  2024
#> # ℹ 212 more rows