The goal of SharepointR is to make use of Microsoft Graph API to access and modify Microsoft Sharepoint items.
Passwords, access tokens, API keys are not stored here. So, installation will require the following steps:
-
Open R Console / RStudio and find out R_USER folder by executing
Sys.getenv("R_USER")
-
Create / modify
.Rprofile
file in R_USER folder and ensure the following line exists in the file:readRenviron(paste0(Sys.getenv("R_USER"), "/.Renviron"))
-
Create / modify
.Renviron
file in R_USER folder and ensure the following line exists in the file:SHAREPOINT_CLIENTID
= <>SHAREPOINT_CLIENTSECRET
= <>SHAREPOINT_REALM
= <>Get these from portal.azure.com. More instructions in Sharepoint Token Resource below:
devtools::install_github("sanjidnet/SharepointR")
REFERENCE