Accessing SharePoint in R

Viewed 40

My script happened to get errors with accessing SharePoint. It used to work.

sp_con = sp_connection("https://asdf.sharepoint.com/sites/staff",
   credentialFile = "H:/SharePoint API/creds.yml", Office365 = T)

The error was

Error in sp_connection("https://asdf.sharepoint.com/sites/staff", : Receiving access cookies failed. In addition: Warning message: In readLines(file) : incomplete final line found on 'Y:/Operations/SharePoint API/creds.yml'

I googled the warning message and found solutions to fix it. But still got the access cookies error. Thanks in advance for any idea!

0 Answers
Related