Closed kendalorgera closed 2 years ago
sessionInfo()
R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044) Matrix products: default locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 LC_NUMERIC=C [5] LC_TIME=English_United States.utf8 attached base packages: [1] grid stats graphics grDevices utils datasets methods base other attached packages: [1] lodown_0.1.0 devtools_2.4.4 usethis_2.1.6 data.table_1.14.2 survey_4.1-1 survival_3.3-1 Matrix_1.4-1 loaded via a namespace (and not attached): [1] tidyselect_1.1.2 remotes_2.4.2 purrr_0.3.4 mitools_2.4 splines_4.2.1 lattice_0.20-45 vctrs_0.4.1 miniUI_0.1.1.1 htmltools_0.5.3 [10] SAScii_1.0.1 utf8_1.2.2 rlang_1.0.4 pkgbuild_1.3.1 later_1.3.0 urlchecker_1.0.1 pillar_1.8.0 withr_2.5.0 glue_1.6.2 [19] DBI_1.1.3 bit64_4.0.5 sessioninfo_1.2.2 lifecycle_1.0.1 stringr_1.4.1 htmlwidgets_1.5.4 memoise_2.0.1 callr_3.7.1 tzdb_0.3.0 [28] fastmap_1.1.0 httpuv_1.6.5 ps_1.7.1 parallel_4.2.1 fansi_1.0.3 Rcpp_1.0.9 xtable_1.8-4 readr_2.1.2 promises_1.2.0.1 [37] cachem_1.0.6 pkgload_1.3.0 vroom_1.5.7 bit_4.0.4 mime_0.12 fs_1.5.2 hms_1.1.1 digest_0.6.29 stringi_1.7.8 [46] processx_3.7.0 shiny_1.7.2 cli_3.3.0 tools_4.2.1 bitops_1.0-7 magrittr_2.0.3 RCurl_1.98-1.8 tibble_3.1.8 profvis_0.3.7 [55] crayon_1.5.1 pkgconfig_2.0.3 ellipsis_0.3.2 prettyunits_1.1.1 rstudioapi_0.13 R6_2.5.1 compiler_4.2.1
R version 4.2.1 (2022-06-23 ucrt) Platform: x86_64-w64-mingw32/x64 (64-bit) Running under: Windows 10 x64 (build 19044)
Matrix products: default
locale: [1] LC_COLLATE=English_United States.utf8 LC_CTYPE=English_United States.utf8 LC_MONETARY=English_United States.utf8 LC_NUMERIC=C [5] LC_TIME=English_United States.utf8
attached base packages: [1] grid stats graphics grDevices utils datasets methods base
other attached packages: [1] lodown_0.1.0 devtools_2.4.4 usethis_2.1.6 data.table_1.14.2 survey_4.1-1 survival_3.3-1 Matrix_1.4-1
loaded via a namespace (and not attached): [1] tidyselect_1.1.2 remotes_2.4.2 purrr_0.3.4 mitools_2.4 splines_4.2.1 lattice_0.20-45 vctrs_0.4.1 miniUI_0.1.1.1 htmltools_0.5.3 [10] SAScii_1.0.1 utf8_1.2.2 rlang_1.0.4 pkgbuild_1.3.1 later_1.3.0 urlchecker_1.0.1 pillar_1.8.0 withr_2.5.0 glue_1.6.2 [19] DBI_1.1.3 bit64_4.0.5 sessioninfo_1.2.2 lifecycle_1.0.1 stringr_1.4.1 htmlwidgets_1.5.4 memoise_2.0.1 callr_3.7.1 tzdb_0.3.0 [28] fastmap_1.1.0 httpuv_1.6.5 ps_1.7.1 parallel_4.2.1 fansi_1.0.3 Rcpp_1.0.9 xtable_1.8-4 readr_2.1.2 promises_1.2.0.1 [37] cachem_1.0.6 pkgload_1.3.0 vroom_1.5.7 bit_4.0.4 mime_0.12 fs_1.5.2 hms_1.1.1 digest_0.6.29 stringi_1.7.8 [46] processx_3.7.0 shiny_1.7.2 cli_3.3.0 tools_4.2.1 bitops_1.0-7 magrittr_2.0.3 RCurl_1.98-1.8 tibble_3.1.8 profvis_0.3.7 [55] crayon_1.5.1 pkgconfig_2.0.3 ellipsis_0.3.2 prettyunits_1.1.1 rstudioapi_0.13 R6_2.5.1 compiler_4.2.1
Code used:
library( devtools ) library( lodown ) nhis_cat <- get_catalog( "nhis" , output_dir = "C:/Users/.../" ) nhis_cat <- subset( nhis_cat , year == 2021 ) nhis_cat <- lodown( "nhis" , nhis_cat )``
Error that keeps appearing with only NHIS 2021 while all other years load (breaks at [[10]]:
Error in eval(e, x, parent.frame()) : object 'impnum' not found
lodown is now exiting unexpectedly.
[[1]] lodown("nhis", nhis_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]] assign(paste0("ii", j), subset(ii, impnum == j)) [[5]] subset(ii, impnum == j) [[6]] subset.data.frame(ii, impnum == j) [[7]] eval(e, x, parent.frame()) [[8]] eval(e, x, parent.frame()) [[9]] .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()) } }, "object 'impnum' not found", base::quote(eval(e, x, parent.frame()))) [[10]] h(simpleError(msg, call)) Error in eval(e, x, parent.frame()) : object 'impnum' not found
[[1]] lodown("nhis", nhis_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]] assign(paste0("ii", j), subset(ii, impnum == j))
[[5]] subset(ii, impnum == j)
[[6]] subset.data.frame(ii, impnum == j)
[[7]] eval(e, x, parent.frame())
[[8]] eval(e, x, parent.frame())
[[9]] .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()) } }, "object 'impnum' not found", base::quote(eval(e, x, parent.frame())))
[[10]] h(simpleError(msg, call))
the two september 15th 2022 commits in the lodown github repo solve this :-)
sessionInfo()
Code used:
Error that keeps appearing with only NHIS 2021 while all other years load (breaks at [[10]]:
lodown is now exiting unexpectedly.