我能够从 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
最佳答案
我尝试了这个并且有效:
system("curl --ntlm --user username:password --upload-file someFolder/FileToCopy.ext https://sites.somecompany.com/sites/sitename/Documents/UserDocumentFolder/FileToCopy.ext")
关于r - 将文件从 R 保存到 SharePoint 文件夹,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45948534/