Issues accessing Sharepoint .xlsx file in R

家住魔仙堡 提交于 2021-01-27 20:46:46

问题


I am attempting to pull data from our SharePoint using the instructions found here (StackOverflow question). Here is the code I am using:

library(readxl)
read_excel('//MyCompany.sharepoint.com/teams/MyProject/Shared Documents/MyExcelFile.xlsx',
       'Sheet1',
       skip=1)

When I enter https://MyCompany.sharepoint.com/teams/MyProject/Shared Documents/MyExcelFile.xlsx into my browser it prompts me to open the Excel document in Excel (not Excel online). So my assumption is that the link works. I have also tried using the httr package as such (with no luck):

data <- GET(url, authenticate("username","password",type="any"))

Any help is much appreciated.

来源:https://stackoverflow.com/questions/50705229/issues-accessing-sharepoint-xlsx-file-in-r

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!