You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.
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
The text was updated successfully, but these errors were encountered:
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
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
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 freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.: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:
The text was updated successfully, but these errors were encountered: