CT-Data-Haven / cwi

R package for prepping and analyzing DataHaven's 2019 Community Index
https://ct-data-haven.github.io/cwi/
Other
6 stars 3 forks source link

Error in gathering decennial in `multi_geo_decennial` #3

Closed camille-s closed 6 years ago

camille-s commented 6 years ago

Calling

multi_geo_decennial("P018", year = 2000, regions = cwi::regions)

gets error:

Error in stri_replace_first_regex(string, pattern, fixreplacement(replacement), : argument str should be a character vector (or an object coercible to) Error in gather(data, key_col = compat_as_lazy(enquo(key)), value_col = compat_as_lazy(enquo(value)), : unused argument (-NAME)

Removing regions works fine.

camille-s commented 6 years ago

Or might be an error coming from tidycensus, since it's coming from get_decennial as well