-
-
Notifications
You must be signed in to change notification settings - Fork 5
is readHFCweb function working? #27
Copy link
Copy link
Open
Description
Hi Tim!
I was trying to import data from HFC for some countries and I noticed that this function is currently commented in the readHFD.R code.
I don't know if it is commented due to any specific reason, but I tried to adapt it to make it work for me. I noticed they changed the path to store the data and how to request it. Follow the two changes I made in your commented code, just in case you intend to add this function again to the package:
- Path: from
fileurl <- paste0("https://www.fertilitydata.org/data/", CNTRY, "/", CNTRY, "_", item, ".txt")topaste0("https://www.fertilitydata.org/File/GetFile/Country/", CNTRY, "/", CNTRY, "_", item, ".txt") - Requesting statement: from
httr::HEAD(fileurl)$all_headers[[1]]$status == 200tohttr::GET(fileurl)$all_headers[[1]]$status == 200
Thank you for this package!
Best,
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels