robjhyndman / demography

demography package for R
https://pkg.robjhyndman.com/demography
73 stars 25 forks source link

Function hmd.mx does not work properly anymore #35

Closed mbs2016 closed 5 years ago

mbs2016 commented 5 years ago

The following code snippet:

library(demography)

data <- hmd.mx("FRACNP",
               "xxx@xxx.com",
               "xxx",
               "France Civilian Population")

gives the following error message, although the username and password (in each case anonymised) and country label are correct:

Error in hmd.mx("FRACNP", "xxx@xxx.com", "xxx", "France Civilian Population") : 
  Connection error at www.mortality.org. Please check username, password and country label.

sessionInfo()

R version 3.5.1 (2018-07-02)
Platform: x86_64-w64-mingw32/x64 (64-bit)
Running under: Windows >= 8 x64 (build 9200)

Matrix products: default

locale:
[1] LC_COLLATE=German_Germany.1252  LC_CTYPE=German_Germany.1252    LC_MONETARY=German_Germany.1252
[4] LC_NUMERIC=C                    LC_TIME=German_Germany.1252    

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

other attached packages:
[1] demography_1.20 forecast_8.4 
spedygiorgio commented 5 years ago

I also experience the same issue

robjhyndman commented 5 years ago

The github version was fixed six weeks ago in https://github.com/robjhyndman/demography/commit/5b1e554974c80368da729a3f4ae038619f2ec9a2