I am trying to download COVID data in R from a Github site, but I am getting a protocol version error. This function has worked fine for many months, but now it stopped working. Can anybody tell me why it is not working? I can't seem to find any documentation of a solution how to make getURL work.
file <- getURL("https://raw.githubusercontent.com/CSSEGISandData/COVID-19/master/csse_covid_19_data/csse_covid_19_daily_reports/01-14-2021.csv")
gives the following error :
Error in function (type, msg, asError = TRUE) :
error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Besides, curlVersion()
doesn't match the expected openssl version installed at the OS level : when I run the command RCurl::curlVersion()$ssl_version
, I get "OpenSSL/1.0.0o"
I don't know how to update this to version 1.1.1g.
Context :
- 64bit PC Windows 10
- R version 4.0.3
- RCurl package version 1.98.1.2
- openssl version 1.1.1g 21 Apr 2020 .
Thanks.