Skip to content

File too large to unzip and a suitable unzip can not be found on your system #143

Description

@arnabkdey
Session Info
- Session info ------------------------------------------------------
 setting  value
 version  R version 4.2.2 (2022-10-31 ucrt)
 os       Windows Server x64 (build 17763)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_United States.1252
 ctype    English_United States.1252
 tz       America/Los_Angeles
 date     2022-12-18
 rstudio  2022.02.3+492 Prairie Trillium (desktop)
 pandoc   NA

- Packages ----------------------------------------------------------
 package     * version date (UTC) lib source
 assertthat    0.2.1   2019-03-21 [1] CRAN (R 4.2.2)
 brio          1.1.3   2021-11-30 [1] CRAN (R 4.2.2)
 cachem        1.0.6   2021-08-19 [1] CRAN (R 4.2.2)
 callr         3.7.3   2022-11-02 [1] CRAN (R 4.2.2)
 cli           3.4.1   2022-09-23 [1] CRAN (R 4.2.2)
 crayon        1.5.2   2022-09-29 [1] CRAN (R 4.2.2)
 curl          4.3.3   2022-10-06 [1] CRAN (R 4.2.2)
 DBI           1.1.3   2022-06-18 [1] CRAN (R 4.2.2)
 devtools    * 2.4.5   2022-10-11 [1] CRAN (R 4.2.2)
 digest        0.6.30  2022-10-18 [1] CRAN (R 4.2.2)
 dplyr         1.0.10  2022-09-01 [1] CRAN (R 4.2.2)
 ellipsis      0.3.2   2021-04-29 [1] CRAN (R 4.2.2)
 fansi         1.0.3   2022-03-24 [1] CRAN (R 4.2.2)
 fastmap       1.1.0   2021-01-25 [1] CRAN (R 4.2.2)
 forcats       0.5.2   2022-08-19 [1] CRAN (R 4.2.2)
 fs            1.5.2   2021-12-08 [1] CRAN (R 4.2.2)
 generics      0.1.3   2022-07-05 [1] CRAN (R 4.2.2)
 getPass       0.2-2   2017-07-21 [1] CRAN (R 4.2.2)
 glue          1.6.2   2022-02-24 [1] CRAN (R 4.2.2)
 haven         2.5.1   2022-08-22 [1] CRAN (R 4.2.2)
 hms           1.1.2   2022-08-19 [1] CRAN (R 4.2.2)
 htmltools     0.5.4   2022-12-07 [1] CRAN (R 4.2.2)
 htmlwidgets   1.5.4   2021-09-08 [1] CRAN (R 4.2.2)
 httpuv        1.6.7   2022-12-14 [1] CRAN (R 4.2.2)
 httr          1.4.4   2022-08-17 [1] CRAN (R 4.2.2)
 jsonlite      1.8.3   2022-10-21 [1] CRAN (R 4.2.2)
 knitr         1.40    2022-08-24 [1] CRAN (R 4.2.2)
 later         1.3.0   2021-08-18 [1] CRAN (R 4.2.2)
 lifecycle     1.0.3   2022-10-07 [1] CRAN (R 4.2.2)
 magrittr      2.0.3   2022-03-30 [1] CRAN (R 4.2.2)
 memoise       2.0.1   2021-11-26 [1] CRAN (R 4.2.2)
 mime          0.12    2021-09-28 [1] CRAN (R 4.2.0)
 miniUI        0.1.1.1 2018-05-18 [1] CRAN (R 4.2.2)
 pillar        1.8.1   2022-08-19 [1] CRAN (R 4.2.2)
 pkgbuild      1.4.0   2022-11-27 [1] CRAN (R 4.2.2)
 pkgconfig     2.0.3   2019-09-22 [1] CRAN (R 4.2.2)
 pkgload       1.3.2   2022-11-16 [1] CRAN (R 4.2.2)
 prettyunits   1.1.1   2020-01-24 [1] CRAN (R 4.2.2)
 processx      3.8.0   2022-10-26 [1] CRAN (R 4.2.2)
 profvis       0.3.7   2020-11-02 [1] CRAN (R 4.2.2)
 promises      1.2.0.1 2021-02-11 [1] CRAN (R 4.2.2)
 ps            1.7.2   2022-10-26 [1] CRAN (R 4.2.2)
 purrr         0.3.5   2022-10-06 [1] CRAN (R 4.2.2)
 qdapRegex     0.7.5   2022-05-02 [1] CRAN (R 4.2.2)
 R.cache     * 0.16.0  2022-07-21 [1] CRAN (R 4.2.2)
 R.methodsS3   1.8.2   2022-06-13 [1] CRAN (R 4.2.0)
 R.oo          1.25.0  2022-06-12 [1] CRAN (R 4.2.0)
 R.utils       2.12.2  2022-11-11 [1] CRAN (R 4.2.2)
 R6            2.5.1   2021-08-19 [1] CRAN (R 4.2.2)
 rappdirs      0.3.3   2021-01-31 [1] CRAN (R 4.2.2)
 Rcpp          1.0.9   2022-07-08 [1] CRAN (R 4.2.1)
 rdhs        * 0.7.6   2022-10-20 [1] CRAN (R 4.2.2)
 readr         2.1.3   2022-10-01 [1] CRAN (R 4.2.2)
 remotes       2.4.2   2021-11-30 [1] CRAN (R 4.2.2)
 rlang         1.0.6   2022-09-24 [1] CRAN (R 4.2.2)
 rstudioapi    0.14    2022-08-22 [1] CRAN (R 4.2.2)
 sessioninfo   1.2.2   2021-12-06 [1] CRAN (R 4.2.2)
 shiny         1.7.4   2022-12-15 [1] CRAN (R 4.2.2)
 storr         1.2.5   2020-12-01 [1] CRAN (R 4.2.2)
 stringi       1.7.8   2022-07-11 [1] CRAN (R 4.2.1)
 stringr       1.4.1   2022-08-20 [1] CRAN (R 4.2.2)
 tibble        3.1.8   2022-07-22 [1] CRAN (R 4.2.2)
 tidyselect    1.2.0   2022-10-10 [1] CRAN (R 4.2.2)
 tzdb          0.3.0   2022-03-28 [1] CRAN (R 4.2.2)
 urlchecker    1.0.1   2021-11-30 [1] CRAN (R 4.2.2)
 usethis     * 2.1.6   2022-05-25 [1] CRAN (R 4.2.2)
 utf8          1.2.2   2021-07-24 [1] CRAN (R 4.2.2)
 vctrs         0.5.0   2022-10-22 [1] CRAN (R 4.2.2)
 xfun          0.34    2022-10-18 [1] CRAN (R 4.2.2)
 xtable        1.8-4   2019-04-21 [1] CRAN (R 4.2.2)

 [1] C:/Users/abay/AppData/Local/Programs/R/R-4.2.2/library
I am getting an error very similar to issue #43 when I try to download a few variables from the India Individual Recode:

here is the reproducible code:

df_vars <- rdhs::search_variables(dataset_filenames = "IAIR7DDT.ZIP", 
                              variables = c("v001", "v005"))

Here is the error that I am getting:

Error in unzip_special(zfile, file[1], exdir = tmp) : 
IAIR7DDT.ZIP is too large to unzip and a suitable unzip can not be found on your system.
12.
stop(basename(zipfile), " is too large to unzip and a suitable unzip ", 
"can not be found on your system.")
11.
unzip_special(zfile, file[1], exdir = tmp)
10.
readr::datasource(file)
9.
readfn(unzip_special(zfile, file[1], exdir = tmp), ...)
8.
read_zipdata(zfile, "\\.dta$", haven::read_dta, ...)
7.
as.data.frame(read_zipdata(zfile, "\\.dta$", haven::read_dta, 
...))
6.
read_dhs_dta(file, ...)
5.
read_dhs_dataset(zip_path, dataset = desired_dataset, reformat, 
all_lower, ...)
4.
download_datasets(config = private$config, desired_dataset = datasets[i, 
], output_dir_root = output_dir_root, download_option = download_option, 
all_lower = all_lower, reformat = reformat, ...)
3.
self$get_datasets(dataset_filenames, ...)
2.
client$survey_variables(dataset_filenames = dataset_filenames, 
variables = variables, essential_variables = essential_variables, 
...)
1.
rdhs::search_variables(dataset_filenames = "IAIR7DDT.ZIP", variables = c("v001", 
"v005"))

I would really appreciate any help to resolve this.

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions