Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

R session stucked when retrieving data for certain countries #33

Open
mynanshan opened this issue Sep 28, 2021 · 1 comment
Open

R session stucked when retrieving data for certain countries #33

mynanshan opened this issue Sep 28, 2021 · 1 comment

Comments

@mynanshan
Copy link

I am using povcalnetR to get the poverty headcounts for each country in a loop. However, the loop always gets stuck at some point such that I have to force shut down my R software. After checking the code, I found that certain countries caused the problem, e.g.:

library(povcalnetR)
povcalnet(
    country = "SUR", povline = 1.9, year = 2010:2021
  )

If country="all", the code works fine, and the retrieved data will not contain information for the problematic country "SUR". It seems that if a country is not in the database, the data retrieval for that individual country will raise a bug.

Other information:

  • System: Windows 10
  • R version: 4.1.1
  • povcalnetR_0.1.1
@mynanshan mynanshan changed the title R session stucked when retrieving data for certain countries bug: R session stucked when retrieving data for certain countries Sep 28, 2021
@mynanshan mynanshan changed the title bug: R session stucked when retrieving data for certain countries R session stucked when retrieving data for certain countries Sep 28, 2021
@tonyfujs
Copy link
Member

tonyfujs commented Oct 4, 2021

Thanks @mynanshan for reporting this!
Looks like empty response are not being correctly handled. Sorry for the inconvenience, will look at this asap, and let you when this fixed.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants