ajdamico / lodown

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

[POF] lodown #153

Closed user-estudos closed 9 months ago

user-estudos commented 5 years ago

hello, I am trying to download POF using lodown package. I am using the code as following (like asdfree.com) :

library(lodown) # examine all available POF microdata files pof_cat <- get_catalog( "pof" , outputdir = file.path( path.expand( "~" ) , "POF" ) ) # 2008-2009 only_ pof_cat <- subset( pof_cat , period == "2008_2009" )

# download the microdata to your local computer pof_cat <- lodown( "pof" , pof_cat )

On this last line of code, occurs the error:

_lodown is now exiting due to an installation error.

Error in load_fun(data_name = data_name, catalog, ...) : you need to install 7-zip. if you already have it, include a parameter like path_to_7za='7za' Warning message: In system(paste0("\"", path_to7za, "\" -h"), show.output.on.console = FALSE) : error while executing command

I am new in this analysis. I try to find some issue on stackoverflow but without sucess. And I had already tried installing 7zip and adding in code

My sessionInfo()

R version 3.6.0 (2019-04-26) Platform: x86_64-pc-linux-gnu (64-bit) Running under: Ubuntu 18.04.2 LTS

Matrix products: default BLAS: /usr/lib/x86_64-linux-gnu/blas/libblas.so.3.7.1 LAPACK: /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3.7.1

Random number generation: RNG: Mersenne-Twister Normal: Inversion Sample: Rounding

locale: [1] LC_CTYPE=pt_BR.UTF-8 LC_NUMERIC=C
[3] LC_TIME=pt_BR.UTF-8 LC_COLLATE=pt_BR.UTF-8
[5] LC_MONETARY=pt_BR.UTF-8 LC_MESSAGES=pt_BR.UTF-8
[7] LC_PAPER=pt_BR.UTF-8 LC_NAME=C
[9] LC_ADDRESS=C LC_TELEPHONE=C
[11] LC_MEASUREMENT=pt_BR.UTF-8 LC_IDENTIFICATION=C

attached base packages: [1] stats graphics grDevices utils datasets methods base

other attached packages: [1] srvyr_0.3.4 convey_0.2.1 lodown_0.1.0
[4] data.table_1.12.2 forcats_0.4.0 stringr_1.4.0
[7] dplyr_0.8.0.1 purrr_0.3.2 readr_1.3.1
[10] tidyr_0.8.3 tibble_2.1.1 ggplot2_3.1.1
[13] tidyverse_1.2.1 usethis_1.5.0 devtools_2.0.2

loaded via a namespace (and not attached): [1] httr_1.4.0 pkgload_1.0.2 jsonlite_1.6
[4] splines_3.6.0 modelr_0.1.4 binman_0.1.1
[7] assertthat_0.2.1 askpass_1.1 wdman_0.2.4
[10] RSelenium_1.7.5 cellranger_1.1.0 remotes_2.0.4
[13] sessioninfo_1.1.1 pillar_1.3.1 backports_1.1.4
[16] lattice_0.20-38 glue_1.3.1 digest_0.6.18
[19] rvest_0.3.3 colorspace_1.4-1 Matrix_1.2-17
[22] survey_3.36 plyr_1.8.4 XML_3.98-1.19
[25] pkgconfig_2.0.2 broom_0.5.2 haven_2.1.0
[28] scales_1.0.0 processx_3.3.0 openssl_1.3
[31] generics_0.0.2 withr_2.1.2 lazyeval_0.2.2
[34] cli_1.1.0 survival_2.44-1.1 magrittr_1.5
[37] crayon_1.3.4 readxl_1.3.1 memoise_1.1.0
[40] ps_1.3.0 fs_1.2.7 nlme_3.1-139
[43] xml2_1.2.0 pkgbuild_1.0.3 tools_3.6.0
[46] prettyunits_1.0.2 hms_0.4.2 mitools_2.4
[49] munsell_0.5.0 callr_3.2.0 compiler_3.6.0
[52] caTools_1.17.1.2 rlang_0.3.4 grid_3.6.0
[55] RCurl_1.95-4.12 rstudioapi_0.10 bitops_1.0-6
[58] gtable_0.3.0 DBI_1.0.0 R6_2.4.0
[61] lubridate_1.7.4 rprojroot_1.3-2 semver_0.2.0
[64] desc_1.2.0 stringi_1.4.3 Rcpp_1.0.1
[67] tidyselect_0.2.5

Thirdhuman commented 5 years ago

Looks like you need to download 7-zip. See below output:

Error in load_fun(data_name = data_name, catalog, ...) :
you need to install 7-zip. if you already have it, include a parameter like path_to_7za='7za'
Warning message:
user-estudos commented 5 years ago

Looks like you need to download 7-zip. See below output:

Error in load_fun(data_name = data_name, catalog, ...) :
you need to install 7-zip. if you already have it, include a parameter like path_to_7za='7za'
Warning message:

sorry about that. I forgot to specify that I had already tried installing 7zip and adding in code. The error still remain

I was editing the issue

gpompeo commented 4 years ago

Have managed to make this work?

I noticed that the POF files don´t follow a fixed structure. There several treatments on the code, but not for the latest version.

I also have a Issue open but no response. I´d like to give it another try, so decided to see if anyone could advance on this.

ajdamico commented 9 months ago

hi! 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 pof data, but only for the most current year. thanks