Created
June 1, 2017 21:35
-
-
Save jhollist/d72a93b48622dd1890e5aca8274a5f82 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
library(tidycensus) | |
ri <- get_decennial(geography = "state", state = "RI",variables = "P001001", | |
key = api_key, | |
year = 2000) | |
#Returning this error... | |
#Using FIPS code '44' for state 'RI' | |
#Using FIPS code '44' for state 'RI' | |
#Error : lexical error: invalid char in json text. | |
# error: unknown/unsupported geog | |
# (right here) ------^ | |
# | |
#Error: is.character(x) is not TRUE |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I don't have that direct functionality exposed at the moment. What I recommend:
My philosophy in the package design has not been to fully expose the API, but rather to help users get enough of what they need and then do the rest within the tidyverse. If this functionality would be useful, however, I'll consider putting it on the roadmap. You can also look at @hrecht's censusapi package, which fully exposes the API: https://github.com/hrecht/censusapi.