from R console windows equivalent of wget

2019-08-06 11:08发布

问题:

Hi I was wondering what the windows equivalent of wget is

I currently have a function in R that has the command

system("wget www.random.url.com/file")

to download a file from the internet from a mac/unix machine that is running R...what would the equivalent be for R in windows?

回答1:

Look at download.file to download files to your computer. This works on all operating systems, including Linux, Mac, and Windows.



回答2:

powershell -command "iwr -outf abc.zip http://example.com/xyz.zip"


标签: windows r wget