ajdamico / asdfree

analyze survey data for free
http://asdfree.com/
GNU General Public License v3.0
612 stars 449 forks source link

cpsbasic error #270

Closed ajdamico closed 7 years ago

ajdamico commented 7 years ago
Downloading from URL

'http://thedataweb.rm.census.gov/pub/cps/basic/201501-/dec15pub.zip'

to file

'/tmp/RtmpIJ34bS/file62605d7841c4'

trying URL 'http://thedataweb.rm.census.gov/pub/cps/basic/201501-/dec15pub.zip'
Content type 'application/zip' length 12753141 bytes (12.2 MB)
==================================================
downloaded 12.2 MB

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()`.

[[1]]
lodown("cpsbasic", cpsbasic_cat)

[[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]]
cps_dd_parser(catalog[i, "dd"])

[[5]]
stopifnot(the_result[i, "start_position"] == the_result[i - 1, 
    "end_position"] + 1)

[[6]]
stop(msg, call. = FALSE, domain = NA)

[[7]]
.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())
    }
}, "the_result[i, \\"start_position\\"] == the_result[i - 1, \\"end_position\\"] +  .... is not TRUE", 
    quote(NULL))

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

Error: the_result[i, "start_position"] == the_result[i - 1, "end_position"] +  .... is not TRUE
Execution halted
ajdamico commented 7 years ago

https://github.com/ajdamico/lodown/commit/50b387c7f9bf550c9d18086aa072098f239bd932