-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
rdhs fails to download data for countries outside of Africa #144
Comments
Hello, Thanks, |
Hi Jeff, The last part of the code on "questions" is the one that reproduces the warning I am getting. For your reference, here is the exact warning I am getting; These requested datasets are not available from your DHS login credentials:BDKR4JFL.ZIP, BDKR51FL.ZIP, BDKR61FL.ZIP, BDKR72FL.ZIP, BDKR7RFL.ZIP, KHKR42FL.zip, COKR72FL.ZIP, DRKR4BFL.ZIP, DRKR52FL.zip, DRKR61FL.ZIP, EGKR5AFL.ZIP, EGKR61FL.ZIP, GYKR5IFL.ZIP, HTKR42FL.zip, HNKR62FL.ZIP, IAKR52FL.ZIP, IAKR74FL.ZIP, IAKR7DFL.ZIP, IDKR42FL.ZIP, IDKR51FL.ZIP, IDKR63FL.ZIP, IDKR71FL.ZIP, PEKR5AFL.ZIP, PEKR5IFL.ZIP, PEKR61FL.ZIP, PEKR6AFL.ZIP, PEKR6IFL.ZIP, phkr41fl.zip, PHKR52FL.ZIP, PHKR61FL.ZIP, PHKR71FL.ZIP, TLKR61FL.ZIP, TLKR71FL.ZIP, VNKR41FL.ZIP, YEKR61FL.ZIP, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NA, NAPlease request permission for these datasets from the DHS website to be able to download themHere is the full code: #------------------------------------------------------------------------------------------------------------------------------------- set_rdhs_config(email = "enter email address", # email address of account holder authorized to download dhs data #------------------------------------------------------------------------------------------------------------------------------------- Variables of interestallCodes_KR = c("hhid","caseid","hw70","hw72") #Children's file allCodes <- list(allCodes_KR,allCodes_IR,allCodes_HR,allCodes_MR) FileTypes <- c('KR', 'IR', 'HR', 'MR') #===================================================================================================================================== #Define countries we need data for.dhsCountries_wMangrove <- c("AO", "BD", "BJ", "BR", "BU", "KH", "CM", "CO", "KM", "CD", "CI", "DR", "EC", "EG", "EK", "ER", "GA,", "GM", "GH", "GN", "GY", #------------------------------------------------------------------------------------------------------------------------------------- #Search for all surveys containing data that matches our set criteria. #------------------------------------------------------------------------------------------------------------------------------------- i=1 #Find the datasets for download. questions <- search_variables(datasets$FileName, variables = allCodes[[i]], reformat=TRUE, |
Hi there, Thank you for the issue and sending an update (apologies for the delay). With this, can you confirm that you have access (as far as rdhs sees it) for one of these datasets. To do this could you post the result of the following once you have set up a config:
If you have access that should return |
Session Info
</I have pasted my sessioninfo() above. My code works perfectly except for one thing. I have access to dhs surveys and GPS data for all countries (global), but only a subset of African countries is being successfully downloaded. I am supplying a list of country codes that includes some that are outside of Africa. For any countries out of Africa, I get the warning that "These requested datasets are not available from your DHS login credentials". Is this a problem with rdhs or with dhs data approval?>
The text was updated successfully, but these errors were encountered: