Open EvoLandEco opened 6 months ago
Found a solution for the issue:
library(RCurl)
options(RCurlOptions = list(cainfo = system.file("CurlSSL", "cacert.pem", package = "RCurl")))
However, then I encountered the same issue XML content does not seem to be XML: ''
as reported by @gtiley in https://github.com/ropensci/treebase/issues/16#issuecomment-1179077970_
m <- treebase::download_metadata("2019-01-01", by="until")
gives error:schannel: CertGetCertificateChain trust error CERT_TRUST_IS_UNTRUSTED_ROOT
If I change
httr
setting byhttr::set_config(httr::config(ssl_verifypeer=0L))
, rerunning thedownload_metadata
gives another error:schannel: CertGetCertificateChain trust error CERT_TRUST_IS_NOT_TIME_VALID