title: Accessing sharepoint in R with windows authentication
body: <p>I am trying to read data from my company intranet sharepoint.</p>
  
  <pre><code>require(httr)
  url &lt;- "http://&lt;domain&gt;/&lt;path&gt;/_vti_bin/ListData.svc/&lt;something&gt;"
  r &lt;- GET(url)
  </code></pre>
  
  <p>The problem is, access to Sharepoint uses Windows authentication. The above, expectedly, gave me 401 Unauthorized error.</p>
  
  <p>How can I incorporate my windows authentication into the request in R, without typing my credential in clear text in the <code>GET</code> parameter? (using <code>authenticate()</code> with my credentials do work).</p>