You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to download the (nonexistant) file using httr yields:
resp<-httr::GET('https://www2.census.gov/geo/tiger/TIGER2021/ROADS/tl_2021_60030_roads.zip')
>respResponse [https://www2.census.gov/geo/tiger/TIGER2021/ROADS/tl_2021_60030_roads.zip]
Date:2024-02-1315:15Status:404Content-Type:text/htmlSize:18.3kB<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Strict//EN""http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><htmlxmlns="http://www.w3.org/1999/xhtml"xml:lang="en"lang="en"><head><!--Eachpagemustcontainthisinfo, perOMB, updateinfoasneccessary--><metahttp-equiv="Content-Type"content="text/html; charset=iso-8859-1"/><title>U.S.CensusBureau:Pagenotfound</title><metaname="DC.title"content="U.S. Census Bureau: Page not found"/><metaname="DC.description"content="U.S. Census Bureau: Page not found"/><metaname="description"content="U.S. Census Bureau: Page not found"/>...
Perhaps it would be worthwhile to check the return status of the GET call in tigris:::load_tiger to determine if the download succeeded, and if if failed to present an appropriate (helpful) diagnostic message to the user. Perhaps something extracting and displaying the DC.description meta tag content:
>tigris::roads(state='60', county='030')
Error:Downloadfailedfor'https://www2.census.gov/geo/tiger/TIGER2021/ROADS/tl_2021_60030_roads.zip':'U.S. Census Bureau: Page not found'
The text was updated successfully, but these errors were encountered:
tigris::roads
returns errors for counties which do not have a road file on the census server. For exampleExamining the relevant directory https://www2.census.gov/geo/tiger/TIGER2021/ROADS/ shows that the relevant file
tl_2021_60030_roads.zip
is not present.Attempting to download the (nonexistant) file using httr yields:
Perhaps it would be worthwhile to check the return status of the
GET
call intigris:::load_tiger
to determine if the download succeeded, and if if failed to present an appropriate (helpful) diagnostic message to the user. Perhaps something extracting and displaying theDC.description
meta tag content:The text was updated successfully, but these errors were encountered: