geomarker-io / codec

Community Data Explorer for Cincinnati
https://geomarker.io/codec/
GNU General Public License v3.0
4 stars 3 forks source link

add more clear error message here when using add_type_attrs with unsupported column class #76

Closed cole-brokamp closed 1 year ago

cole-brokamp commented 1 year ago

https://github.com/geomarker-io/codec/blob/34193d951ea82328c6f1e5d79ea1b72f9df9b9c7/R/attributes.R#L53-L64

e.g.,

codec::add_type_attrs(cincy::tract_tigris_2020)

#> Error in `purrr::map_chr()`:
#> ℹ In index: 2.
#> ℹ With name: geometry.
#> Caused by error:
#> ! Result must be length 1, not 0.
#> Run `rlang::last_trace()` to see where the error occurred.
cole-brokamp commented 1 year ago

will be fixed in new fr package