The following code either ran or failed at complete random. Tested with combinations of different states and the following variables: 'P001001' ,'P005003' ,'P005004' ,'P004003'. This issue only arose at the block level and not at county, tract, or block group levels.
get_decennial(
geography = "block",
variables = 'P005003',
state = "AL",
year = 2010,
sumfile = "sf1",
key = census.key)
When the code failed, the following error message appeared.
Error in `get_decennial()`:
! Error in load_data_decennial(geography, variables, key, year, sumfile, :
No content was returned from the API. Please refine your selection.
The following code either ran or failed at complete random. Tested with combinations of different states and the following variables: 'P001001' ,'P005003' ,'P005004' ,'P004003'. This issue only arose at the block level and not at county, tract, or block group levels.
When the code failed, the following error message appeared.