user1605665 February 2016

How do i download a file from a download link using R

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"

Answers


dimitris_ps February 2016

As @tospig suggested use system() like so:

system("curl negotiate -u user:pass -L --insecure -o DownloadFileName.xml \"https://Server/Servlet?param1=value1\"")

Post Status

Asked in February 2016
Viewed 1,464 times
Voted 11
Answered 1 times

Search




Leave an answer