hrecht / censusapi

R package to retrieve U.S. Census data and metadata via API
https://www.hrecht.com/censusapi/
169 stars 31 forks source link

Returning a single block throws error. #23

Closed jhollist closed 7 years ago

jhollist commented 7 years ago

Gist with details: https://gist.github.com/jhollist/010bdbb78c1cf5ce1a55ae4dd6830879

hrecht commented 7 years ago

Thanks, this appears to be an issue for single-row responses generally. Also fails with other geographic specs and API endpoints. Will fix.

getCensus(name = "sf1",vintage = 2010, vars = "P0010001", region = "state:1") getCensus(name="acs5", vintage=2014,vars=c("NAME", "B01001_001E"), region="state:1")

jhollist commented 7 years ago

Awesome, thanks!

hrecht commented 7 years ago

@jhollist Did you notice this error before updating to v0.1.1? Trying to figure out if recent changes introduced it or if it's an older bug.

jhollist commented 7 years ago

Today is my first time using censusapi! So v0.1.1 is all I've seen.