问题
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