0

I have a script that currently downloads a file from a download link that uses Single Signon (SSO) infrastructure. At the moment i'm using a batch script with curl to download it. How can I make the equalivent all in R to download the file

curl negotiate -u user:pass -L --insecure -o DownloadFileName.xml "https://Server/Servlet?param1=value1"
user1605665
  • 3,771
  • 10
  • 36
  • 54
  • 1
    you can use `system()` to [call your system call](http://stackoverflow.com/questions/5745886/r-and-system-calls), or try [`?download.file()`](http://www.inside-r.org/r-doc/utils/download.file) – tospig Feb 08 '16 at 22:19
  • @tospig the answer worked – user1605665 Feb 08 '16 at 22:50

1 Answers1

0

As @tospig suggested use system() like so:

system("curl negotiate -u user:pass -L --insecure -o DownloadFileName.xml \"https://Server/Servlet?param1=value1\"")
dimitris_ps
  • 5,849
  • 3
  • 29
  • 55