Skip to content
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

curl::curl_download Error #18

Closed
seabbs opened this issue Jan 24, 2018 · 3 comments
Closed

curl::curl_download Error #18

seabbs opened this issue Jan 24, 2018 · 3 comments

Comments

@seabbs
Copy link
Owner

seabbs commented Jan 24, 2018

Data fails to download on Windows, as of the 22/01/18

Error is:

>tb_burden <- get_data(url = "https://extranet.who.int/tme/generateCSV.asp?ds=estimates",
+ save_name = "TB_burden",
+ save = TRUE, 
+ download_data = TRUE)
Downloading data from: https://extranet.who.int/tme/generateCSV.asp?ds=estimates
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
100 19471    0 19471    0     0  19471      0 --:--:--  0:00:01 --:--:-- 10046
100  272k    0  272k    0     0   136k      0 --:--:--  0:00:02 --:--:--  106k
Error in curl::curl_download(input, tt, mode = "wb", quiet = !showProgress) : 
  Failure when receiving data from the peer
Calls: get_data -> <Anonymous> -> <Anonymous> -> .Call
Execution halted
@seabbs
Copy link
Owner Author

seabbs commented Jan 24, 2018

May be related to this issue in data.table: Rdatatable/data.table#1686

@seabbs
Copy link
Owner Author

seabbs commented Jan 24, 2018

Try a workaround with a manual download and install for instances when fread::data.table fails

@seabbs
Copy link
Owner Author

seabbs commented Jan 24, 2018

Base solution using utils::read.csv implemented. Passes local checks

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

No branches or pull requests

1 participant