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

时间:2017-08-29 21:22:36

标签: r sharepoint shiny-server

我可以从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 个答案:

答案 0 :(得分:1)

我试过这个并且有效:

config