The second argument download.file()is destfile, and it must be specified. I don’t have a Windows machine to test this, but both of these functions work in my Linux window, and I don’t understand why at least the second one will not work on Windows either:
download.file("http://www.abc.com/abc.zip", "./abc.zip")
download.file("http://www.abc.com/abc.zip", "abc.zip")
The second of them indicates that if you simply specify the file name, the file will be loaded into the current working directory and saved under the specified name.
source
share