Closed lamsiman closed 10 months ago
hey Siman! 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 timss data, but only for the most current year. thanks
[[1]] lodown("timss", timss_cat)
[[2]] withCallingHandlers(catalog <- load_fun(data_name = data_name, catalog, ...), error = function(e) { print(sessionInfo()) 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]] read_SAScii(this.file, this.sas)
[[5]] readr::read_fwf(dat_path, readr::fwf_widths(abs(sasc$width), col_names = sasc[, "varname"]), coltypes = paste0(ifelse(grepl("^toss", sasc$varname), "", ifelse(sasc$char, "c", "d")), collapse = ""), na = na_values, locale = readr::locale(decimal_mark = ".", grouping_mark = ","), ...)
[[6]] vroom::vroom_fwf(file, col_positions = col_positions, col_types = col_types, col_select = { { col_select } }, id = id, .name_repair = name_repair, locale = locale, na = na, comment = comment, skip_empty_rows = skip_empty_rows, trim_ws = trim_ws, skip = skip, n_max = n_max, guess_max = guess_max, show_col_types = show_col_types, progress = progress, altrep = lazy, num_threads = num_threads)
[[7]] vroomfwf(file, as.integer(col_positions$begin), as.integer(col_positions$end), trim_ws = trim_ws, col_names = col_positions$col_names, col_types = col_types, col_select = col_select, name_repair = .name_repair, id = id, na = na, guess_max = guess_max, skip = skip, comment = comment, skip_empty_rows = skip_empty_rows, n_max = n_max, num_threads = num_threads, altrep = vroom_altrep(altrep), locale = locale, progress = progress)
[[8]] .handleSimpleError(function (e) { print(sessionInfo()) 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 value", base::quote(vroomfwf(file, as.integer(col_positions$begin), as.integer(col_positions$end), trim_ws = trim_ws, col_names = col_positions$col_names, col_types = col_types, col_select = col_select, name_repair = .name_repair, id = id, na = na, guess_max = guess_max, skip = skip, comment = comment, skip_empty_rows = skip_empty_rows, n_max = n_max, num_threads = num_threads, altrep = vroom_altrep(altrep), locale = locale, progress = progress)))
[[9]] h(simpleError(msg, call))
Error in vroomfwf(file, as.integer(col_positions$begin), as.integer(col_positions$end), : bad value In addition: Warning message: In readLines(this_con, encoding = sas_encoding) : incomplete final line found on '/var/folders/nt/50g_vj4n7fd730g60v4lrsxw0000gn/T//RtmpGKp879/ACGCONTR.SAS'
Matrix products: default LAPACK: /Library/Frameworks/R.framework/Versions/4.2/Resources/lib/libRlapack.dylib
locale: [1] en_US.UTF-8/en_US.UTF-8/en_US.UTF-8/C/en_US.UTF-8/en_US.UTF-8
attached base packages: [1] stats graphics grDevices utils datasets methods base
other attached packages: [1] lodown_0.1.0
loaded via a namespace (and not attached): [1] rstudioapi_0.15.0 magrittr_2.0.3 hms_1.1.3 tidyselect_1.2.0 [5] bit_4.0.5 R6_2.5.1 rlang_1.1.1 fastmap_1.1.1
[9] fansi_1.0.5 blob_1.2.4 httr_1.4.7 tools_4.2.2
[13] parallel_4.2.2 vroom_1.6.4 utf8_1.2.4 cli_3.6.1
[17] DBI_1.1.3 withr_2.5.1 bit64_4.0.5 digest_0.6.33
[21] tibble_3.2.1 lifecycle_1.0.3 crayon_1.5.2 SAScii_1.0.2
[25] tzdb_0.4.0 readr_2.1.4 vctrs_0.6.4 curl_5.1.0
[29] memoise_2.0.1 glue_1.6.2 cachem_1.0.8 RSQLite_2.3.1
[33] compiler_4.2.2 pillar_1.9.0 foreign_0.8-83 pkgconfig_2.0.3