使用R将文件写入受保护的Sharepoint站点

时间:2017-10-24 17:13:29

标签: r sharepoint

我已经找到了一种方法,使用R将文件写入硬盘上的文件夹。但是,现在我想找到一种方法将文件写入受保护的sharepoint站点。这意味着我需要在访问之前验证我的用户名和密码。

这是我尝试使用的代码。事情是它会起作用而不会传递任何错误,但文件不会上传。

require(gdata)
system("curl --ntml --user Username:password --upload-file C:/Users/Documents/pick.txt https://companyportal.sharepoint.com/file.aspx?file=Shared%20Documents/pick.txt")
plot(dataset);

我不知道哪里出错了。任何帮助将不胜感激。

1 个答案:

答案 0 :(得分:0)

我遇到了类似的问题,我设法解决了在我的计算机上安装本地sharepoint文件系统的问题。