When I use the download.file
function with method curl
I get a downloaded file with 0
bytes.
for example:
download.file('https://github.com/rstudio/rmarkdown/archive/refs/heads/main.zip', destfile='library', method='curl')
Produces the following output:
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
character(0)
How can I get this fixed?
Note:
method='wget'
works but that is because my Mac has wget
, however my windows laptop only has curl
as an option, and this does not work. I specifically want to fix the curl method.