title: Saving files to SharePoint folder from R
body: <p>I am able to open a file from a SharePoint Folder from R running on Rshiny server. But, not able to save a file to the same folder. I get error message as shown below. I tried the solutions provided here <a href="https://stackoverflow.com/questions/41895673/saving-a-file-to-sharepoint-with-r">Saving a file to Sharepoint with R</a> and here <a href="https://stackoverflow.com/questions/15799268/copying-file-to-sharepoint-library-in-r">Copying file to sharepoint library in R</a> with no luck. Any suggestions?</p>
  
  <pre><code>df &lt;- read.csv("http://sites.somecompany.com/sites/sitename/Documents/UserDocumentFolder/filename.csv")
  
  write.csv(df, "http://sites.somecompany.com/sites/sitename/Documents/UserDocumentFolder/filename2.csv")
  
  can only open URLs for readingError in file(file, ifelse(append, "a", "w")) : 
    cannot open the connection
  </code></pre>