-
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
Error in names(filedatatypelist_DHS) <- paste0("filedatatypelist_", qdapRegex::rm_between(filedatatypelist_DHS_line, : 'names' attribute [16] must be the same length as the vector [1] #131
Comments
Thanks for reporting this. I cannot tell from the above what you are trying to do or what commands are giving rise to the error. Can you please post the code that you are trying to run that gives rise to the error and the full console output? Thanks, |
Thanks @jeffeaton for the response, below is the console output. I am trying to access full DHS datasets by downloading using the get_datasets function. `> library(rdhs)
|
Thanks very much. I am not familiar with that error unfortunately. From reviewing the console output, it looks like you are trying to download three MIS datasets, correct? Could you try the following code to see if that gives you the same error?
|
Yes, that's correct. I have tried to run the code above but still no luck. I am still getting the same error. See out put below `library(rdhs)
|
Thanks for checking. It looks like the function is failing while creating the list of available datasets that have been approved for your project: Lines 101 to 110 in c368bdb
Are you able to download these data sets when you login via the DHS webpage? E.g. from here: https://dhsprogram.com/data/dataset/Tanzania_MIS_2017.cfm?flag=0 To make sure the authentication for your account and project is working, can you try the following and ensure it returns a valid
This is what I get back:
(Make sure not to copy/paste the full output -- it contains your account login password) |
Yes, I am able to download all DHS/MIS datasets manually. Below is what I get after checking authentication. `
$user_pass $proj_id |
I am having the exact same problem when trying to download datasets for which I have access:
|
Thanks very much. I'm a bit stumped on this and not able to reproduce. @OJWatson -- any ideas? |
Fix for #131. Bug due to new version of `qdapRegex` on CRAN
Hey @jeffeaton, @horaciochacon, @chilochibi, Thanks all for the helpful debugs. Think this was due to a new version of I have just merged a fix in for this. Please have a go redownloading rdhs v0.7.4 and let me know if this fixes it. OJ |
Hi @OJWatson, this definitely solved the issue. Thanks! |
Great to hear. Will close this then now. |
how to download rdhs v0.7.4 |
Hello, I have seen that this issue has been addressed but I seem not to go through to download the datasets. I have access to two projects on the DHS site. However, I am also getting the error below. I followed the step by step example provided in the link below. https://www.rdocumentation.org/packages/rdhs/versions/0.7.3
The text was updated successfully, but these errors were encountered: