ajdamico / lodown

locally download and prepare publicly-available microdata
GNU General Public License v3.0
97 stars 47 forks source link

fix ahs #73

Closed ajdamico closed 7 years ago

ajdamico commented 7 years ago

Content type 'text/html' length 241825 bytes (236 KB) downloaded 236 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1997.html' Content type 'text/html' length 246120 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1997/1997-ahs-natio nal-puf-microdata.html' Content type 'text/html' length 244879 bytes (239 KB) downloaded 239 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1996.html' Content type 'text/html' length 246194 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1996/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240093 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1995.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1995/ahs-1995-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1994.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1994/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240072 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1993.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1993/ahs-1993-publi c-use-file--puf-.html' Content type 'text/html' length unknown downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1992.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1992/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240127 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1991.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1991/ahs-1991-publi c-use-file--puf-.html' Content type 'text/html' length 239051 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1990.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1990/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240117 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1989.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1989/ahs-1989-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1988.html' Content type 'text/html' length 246135 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1988/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240118 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1987.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1987/ahs-1987-publi c-use-file--puf-.html' Content type 'text/html' length 239051 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1986.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1986/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 240118 bytes (234 KB) downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1985.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1985/ahs-1985-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1984.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1984/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 239201 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1983.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1983/ahs-1983-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1982.html' Content type 'text/html' length 246236 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1982/ahs-metropolit an-puf-microdata.html' Content type 'text/html' length 239177 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1981.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1981/ahs-1981-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1980.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1980/ahs-1980-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1979.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1979/ahs-1979-publi c-use-file--puf-.html' Content type 'text/html' length 239379 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1978.html' Content type 'text/html' length unknown downloaded 241 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1978/ahs-1978-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1977.html' Content type 'text/html' length 246137 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1977/ahs-1977-publi c-use-file--puf-.html' Content type 'text/html' length 239058 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1976.html' Content type 'text/html' length 246135 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1976/ahs-1976-publi c-use-file--puf-.html' Content type 'text/html' length 239051 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1975.html' Content type 'text/html' length 246136 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1975/ahs-1975-publi c-use-file--puf-.html' Content type 'text/html' length 239051 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1974.html' Content type 'text/html' length unknown downloaded 241 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1974/ahs-1974-publi c-use-file--puf-0.html' Content type 'text/html' length 239073 bytes (233 KB) downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1973.html' Content type 'text/html' length 246284 bytes (240 KB) downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1973/ahs-national-p uf-microdata.html' Content type 'text/html' length 239086 bytes (233 KB) downloaded 233 KB

locally downloading ahs

Downloading from URL 'http://www2.census.gov/programs-surveys/ahs/2013/AHS%202013%20National%20PUF%20 v1.2%20CSV.zip' to file 'C:\Users\AnthonyD\AppData\Local\Temp\4\RtmpQZg1MK\file2a5427b86f65'

trying URL 'http://www2.census.gov/programs-surveys/ahs/2013/AHS%202013%20Nation al%20PUF%20v1.2%20CSV.zip' Content type 'application/zip' length 69482529 bytes (66.3 MB) downloaded 66.3 MB

lodown is now exiting unexpectedly. websites that host publicly-downloadable microdata change often and sometimes th ose 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/lodown/issues with the contents of this error call stack and also the output of your sessio nInfo().

[[1]] lodown::lodown("ahs", output_dir = "R:/American Housing Survey/")

[[2]] withCallingHandlers(catalog <- load_fun(data_name = data_name, catalog, ...), error = function(e) { if (grepl("cannot allocate vector of size", e)) message(memory_note) else if (grepl("parameter must be specified", e)) message(parameter_note) else if (grepl("to install", e)) message(installation_note) else { message(unknown_error_note) print(sys.calls()) } })

[[3]] load_fun(data_name = data_name, catalog, ...)

[[4]] load(hhlfn)

[[5]] .handleSimpleError(function (e) { if (grepl("cannot allocate vector of size", e)) message(memory_note) else if (grepl("parameter must be specified", e)) message(parameter_note) else if (grepl("to install", e)) message(installation_note) else { message(unknown_error_note) print(sys.calls()) } }, "bad restore file magic number (file may be corrupted) -- no data loaded", quote(NULL))

[[6]] h(simpleError(msg, call))

Error: bad restore file magic number (file may be corrupted) -- no data loaded In addition: There were 50 or more warnings (use warnings() to see the first 50)

ajdamico commented 7 years ago

something else

R version 3.3.2 (2016-10-31) -- "Sincere Pumpkin Patch"
Copyright (C) 2016 The R Foundation for Statistical Computing
Platform: x86_64-w64-mingw32/x64 (64-bit)

R is free software and comes with ABSOLUTELY NO WARRANTY.
You are welcome to redistribute it under certain conditions.
Type 'license()' or 'licence()' for distribution details.

  Natural language support but running in an English locale

R is a collaborative project with many contributors.
Type 'contributors()' for more information and
'citation()' on how to cite R or R packages in publications.

Type 'demo()' for some demos, 'help()' for on-line help, or
'help.start()' for an HTML browser interface to help.
Type 'q()' to quit R.

> lodown::lodown("ahs",output_dir=tempdir())
building catalog for ahs

trying URL 'http://www.census.gov/programs-surveys/ahs/data.All.html'
Content type 'text/html;charset=UTF-8' length unknown
downloaded 275 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2015.html'
Content type 'text/html' length 246217 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2015/ahs-2015-public-use-file--puf-.html'
Content type 'text/html' length 238705 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2013.html'
Content type 'text/html' length 246196 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2013/ahs-2013-public-use-file--puf-.html'
Content type 'text/html' length 239113 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2011.html'
Content type 'text/html' length 246174 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2011/ahs-national-and-metropolitan-puf-microdata.html'
Content type 'text/html' length 249022 bytes (243 KB)
downloaded 243 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2009.html'
Content type 'text/html' length 246140 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2009/ahs-2009-public-use-file--puf-.html'
Content type 'text/html' length 239097 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2007.html'
Content type 'text/html' length 246135 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2007/ahs-2007-public-use-file--puf-.html'
Content type 'text/html' length 239089 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2005.html'
Content type 'text/html' length 246125 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2005/2005-ahs-national-puf-microdata.html'
Content type 'text/html' length 246579 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2004.html'
Content type 'text/html' length unknown
downloaded 241 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2004/2004-ahs-metro-puf-microdata.html'
Content type 'text/html' length 246656 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2003.html'
Content type 'text/html' length 246157 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2003/2003-ahs-national-puf-microdata.html'
Content type 'text/html' length 246570 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2002.html'
Content type 'text/html' length 246221 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2002/2002-ahs-metro-puf-microdata.html'
Content type 'text/html' length 244982 bytes (239 KB)
downloaded 239 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.2001.html'
Content type 'text/html' length 246121 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/2001/2001-ahs-national-puf-microdata.html'
Content type 'text/html' length 244877 bytes (239 KB)
downloaded 239 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1999.html'
Content type 'text/html' length 246153 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1999/1999-ahs-national-puf-microdata.html'
Content type 'text/html' length 241752 bytes (236 KB)
downloaded 236 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1998.html'
Content type 'text/html' length 246227 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1998/1998-ahs-metro-puf-microdata.html'
Content type 'text/html' length 241825 bytes (236 KB)
downloaded 236 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1997.html'
Content type 'text/html' length 246120 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1997/1997-ahs-national-puf-microdata.html'
Content type 'text/html' length 244879 bytes (239 KB)
downloaded 239 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1996.html'
Content type 'text/html' length 246194 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1996/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240093 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1995.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1995/ahs-1995-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1994.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1994/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240072 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1993.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1993/ahs-1993-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1992.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1992/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240127 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1991.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1991/ahs-1991-public-use-file--puf-.html'
Content type 'text/html' length 239051 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1990.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1990/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240117 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1989.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1989/ahs-1989-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1988.html'
Content type 'text/html' length 246135 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1988/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240118 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1987.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1987/ahs-1987-public-use-file--puf-.html'
Content type 'text/html' length 239051 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1986.html'
Content type 'text/html' length unknown
downloaded 241 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1986/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 240118 bytes (234 KB)
downloaded 234 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1985.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1985/ahs-1985-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1984.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1984/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 239201 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1983.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1983/ahs-1983-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1982.html'
Content type 'text/html' length 246236 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1982/ahs-metropolitan-puf-microdata.html'
Content type 'text/html' length 239177 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1981.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1981/ahs-1981-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1980.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1980/ahs-1980-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1979.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1979/ahs-1979-public-use-file--puf-.html'
Content type 'text/html' length 239379 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1978.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1978/ahs-1978-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1977.html'
Content type 'text/html' length 246137 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1977/ahs-1977-public-use-file--puf-.html'
Content type 'text/html' length 239058 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1976.html'
Content type 'text/html' length 246135 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1976/ahs-1976-public-use-file--puf-.html'
Content type 'text/html' length 239051 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1975.html'
Content type 'text/html' length 246136 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1975/ahs-1975-public-use-file--puf-.html'
Content type 'text/html' length 239051 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1974.html'
Content type 'text/html' length 246143 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1974/ahs-1974-public-use-file--puf-0.html'
Content type 'text/html' length 239073 bytes (233 KB)
downloaded 233 KB

trying URL 'http://www.census.gov/programs-surveys/ahs/data.1973.html'
Content type 'text/html' length 246284 bytes (240 KB)
downloaded 240 KB

trying URL 'http://www.census.gov//programs-surveys/ahs/data/1973/ahs-national-puf-microdata.html'
Content type 'text/html' length 239086 bytes (233 KB)
downloaded 233 KB

locally downloading ahs

'http://www2.census.gov/programs-surveys/ahs/2013/AHS%202013%20National%20PUF%20v1.2%20CSV.zip'

cached in

'C:/Users/AnthonyD/AppData/Local/Temp/8/781c457efacd736f662f9e78762c5526.Rcache'

copying to

'C:\Users\AnthonyD\AppData\Local\Temp\8\Rtmpwno3TL\file306c63ec96'

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/lodown/issues` with the contents of this error call stack and also the output of your `sessionInfo()`.

[[1]]
lodown::lodown("ahs", output_dir = tempdir())

[[2]]
withCallingHandlers(catalog <- load_fun(data_name = data_name, 
    catalog, ...), error = function(e) {
    if (grepl("cannot allocate vector of size", e)) 
        message(memory_note)
    else if (grepl("parameter must be specified", e)) 
        message(parameter_note)
    else if (grepl("to install", e)) 
        message(installation_note)
    else {
        message(unknown_error_note)
        print(sys.calls())
    }
})

[[3]]
load_fun(data_name = data_name, catalog, ...)

[[4]]
saveRDS(x, file = merge.fp)

[[5]]
gzfile(file, mode)

[[6]]
.handleSimpleError(function (e) 
{
    if (grepl("cannot allocate vector of size", e)) 
        message(memory_note)
    else if (grepl("parameter must be specified", e)) 
        message(parameter_note)
    else if (grepl("to install", e)) 
        message(installation_note)
    else {
        message(unknown_error_note)
        print(sys.calls())
    }
}, "invalid 'description' argument", quote(gzfile(file, mode)))

[[7]]
h(simpleError(msg, call))

Error in gzfile(file, mode) : invalid 'description' argument
In addition: There were 50 or more warnings (use warnings() to see the first 50)
>