asdfree
asdfree copied to clipboard
error in downloading acs files
I received the following error when trying to download the ACS data using this code: lodown( "acs" , output_dir = file.path( path.expand( "~" ) , "ACS" ) )
Error in cachaca(catalog[i, if (j == "h") "h_full_url" else "p_full_url"], : download failed after 3 attempts
Other notes: trying URL 'https://www2.census.gov/programs-surveys/acs/data/pums/2007/3-Year/csv_har.zip' Content type 'application/zip' length 5212314 bytes (5.0 MB) downloaded 5.0 MB
downloaded file size on disk (5212314) does not match server's content length (269)
lodown is now exiting unexpectedly.
websites that host publicly-downloadable microdata change often and sometimes those changes cause this software to break.
if the error call stack below appears to be a hiccup in your internet connection, then please verify your connectivity and retry the download.
otherwise, please open a new issue at https://github.com/ajdamico/asdfree/issues
with the contents of this error call stack and also the output of your sessionInfo()
.
I'm running into a similar issue when trying to get the most recent five-year ACS data.
When running the following block:
library(lodown)
acs_cat <-
get_catalog("acs", output_dir = paste0(getwd(), "/data"))
acs_cat <- subset(acs_cat , year == 2017 & time_period == '5-Year')
acs_cat <- lodown("acs" , acs_cat)
I get:
Error in cachaca(wyoming_unix, tf, mode = "wb") :
remote server lists file size as zero
I set filesize_fun = "unzip_verify" in cachaca. That solved the problem for me.
hi! apologies for the long delay. i've made a couple of big updates to asdfree.com that hopefully make the website a bit better, but i've decided to stop maintaining the lodown package so probably won't fix the bug you've reported. the new asdfree does have acs data, but only for the most current year. thanks