ccodwg/Covid19CanadaData

Some parameters ignored when file is specified in dl_dataset()

jeanpaulrsoucy opened this issue · 0 comments

Some relevant parameters like verify are ignored when downloading to file rather than loading into R.
For example, this works fine:

Covid19CanadaData::dl_dataset("685df305-f6c7-4ac2-992b-ec707eb1f1cb")

While this:

Covid19CanadaData::dl_dataset("685df305-f6c7-4ac2-992b-ec707eb1f1cb", file = "~/Desktop/temp.html")

Returns the error:

Error in curl::curl_download(url, file, handle = h) : 
  SSL certificate problem: unable to get local issuer certificate

This error is usually bypassed using the verify = FALSE argument.