from R console windows equivalent of wget

2019-08-06 10:31发布

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?

标签: windows r wget
2条回答
SAY GOODBYE
2楼-- · 2019-08-06 11:09

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

查看更多
等我变得足够好
3楼-- · 2019-08-06 11:11
powershell -command "iwr -outf abc.zip http://example.com/xyz.zip"
查看更多
登录 后发表回答