-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathREADME.Rmd
52 lines (32 loc) · 1.41 KB
/
README.Rmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
---
output: github_document
---
<!-- README.md is generated from README.Rmd. Please edit that file -->
```{r, include = FALSE}
knitr::opts_chunk$set(
collapse = TRUE,
comment = "#>",
fig.path = "man/figures/README-",
out.width = "100%"
)
```
# SharepointR
<!-- badges: start -->
<!-- badges: end -->
The goal of SharepointR is to make use of Microsoft Graph API to access and modify Microsoft Sharepoint items.
## Installation
Passwords, access tokens, API keys are not stored here. So, installation will require the following steps:
1. Create / modify `.Rprofile` file in location `Sys.getenv("R_USER")` to ensure the following:
`readRenviron(paste0(Sys.getenv("R_USER"), "/.Renviron"))`
2. Create / modify `.Renviron` file in location `Sys.getenv("R_USER")` to ensure the following:
`SHAREPOINT_CLIENTID` = <>
`SHAREPOINT_CLIENTSECRET` = <>
`SHAREPOINT_REALM` = <>
Get these from [portal.azure.com](portal.azure.com). More instructions in Sharepoint Token Resource below:
``` r
devtools::install_github("officepd/SharepointR")
```
REFERENCE
- [Renviron Resource 1](http://www.dartistics.com/renviron.html)
- [Renviron Resource 2](https://support.rstudio.com/hc/en-us/articles/360047157094-Managing-R-with-Rprofile-Renviron-Rprofile-site-Renviron-site-rsession-conf-and-repos-conf)
- [Sharepoint Token Resource](https://anoopt.medium.com/access-sharepoint-data-using-postman-eec5965400f2)