robjhyndman / demography

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

Unable to download data from HMD as of today (Nov 2022) #48

Closed masato052 closed 1 year ago

masato052 commented 1 year ago

Hello, With the new mortality.org web, can i still download data from HMD using this package? Because, through my username and password using hmd.mx i get the following error Connection error at www.mortality.org. Please check username, password and country label. I am sure that username and password is correct. Can you help me?

Thank you.

robjhyndman commented 1 year ago

You currently have to use the old site and login details: https://former.mortality.org

Note that the new login details do not work on the old site. You need a username and password from the old site.

masato052 commented 1 year ago

You currently have to use the old site and login details: https://former.mortality.org

Note that the new login details do not work on the old site. You need a username and password from the old site.

so, i can still use hmd.mx(country, username, password, label = country) code to get the data from HMD but using a username and password from the old site or i need to construct the code by myself?

robjhyndman commented 1 year ago

You can use the function provided you use a username and password from the old site. I haven't updated it yet for the new site as the new API has not yet been published.