I have CSV files in a folder on Office 365 Sharepoint that I would like to import into R. In base R I get:
> test <-
read.csv("https://MYURL/:x:/r/sites/MYSITE/Shared%20Documents/Q_10_2018.csv?
d=w5cbc38ea43c347689ec6d59a8285d769&csf=1&e=tZ6Lep",header=TRUE)
Error in file(file, "rt") : cannot open the connection
In addition: Warning message:
In file(file, "rt") :
cannot open URL
'https://MYURL.sharepoint.com/:x:/r/sites/MYSITE/Shared%20Documents/
Q_10_2018.csv?d=w5cbc38ea43c347689ec6d59a8285d769&csf=1&e=tZ6Lep': HTTP
status was '403 FORBIDDEN'
With read_csv
I get:
> test <-
read_csv("https://MYURL/:x:/r/sites/MYSITE/Shared%20Documents/Q_10_2018.csv?
d=w5cbc38ea43c347689ec6d59a8285d769&csf=1&e=tZ6Lep")
Error in open.connection(con, "rb") : HTTP error 403.
I would like to offer a reproducible problem but because these are internal sites, I am not able to provide the full URL and give access to our corporate server. Also, I can't find and questions here or other documentation that tells me if this goal is even attainable.
Does anyone have any clues? Thanks in advance.