首页 文章

从R将文件保存到SharePoint文件夹

提问于
浏览
0

我能够从Rshiny服务器上运行的R的SharePoint文件夹中打开一个文件 . 但是,无法将文件保存到同一文件夹 . 我收到错误消息,如下所示 . 我尝试了这里提供的解决方案Saving a file to Sharepoint with R和这里Copying file to sharepoint library in R没有运气 . 有什么建议?

df <- 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

1 回答

  • 1

    我试过这个并且它有效:

    system("curl --ntlm --user username:password --upload-file someFolder/FileToCopy.ext https://sites.somecompany.com/sites/sitename/Documents/UserDocumentFolder/FileToCopy.ext")
    

相关问题