-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstitutions.qmd
More file actions
45 lines (35 loc) · 1006 Bytes
/
Copy pathinstitutions.qmd
File metadata and controls
45 lines (35 loc) · 1006 Bytes
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
---
title: "Institutions"
format: html
---
## About
This page documents testing of functions related to institutions.
## Setup
```{r}
#| label: "login to Databrary"
library(databraryr)
login_db(email = Sys.getenv("DATABRARY_LOGIN"),
password = Sys.getenv("DATABRARY_PASSWORD"),
client_id = Sys.getenv("DATABRARY_CLIENT_ID"),
client_secret = Sys.getenv("DATABRARY_CLIENT_SECRET"),
store = FALSE,
overwrite = FALSE,
vb = TRUE)
```
## Testing `*_institution_*` functions
```{r}
#| label: "testing _institution* functions"
get_institution_avatar(institution_id = 1,
dest_path = "databrary.png",
vb = TRUE)
get_institution_by_id(institution_id = 12,
vb = TRUE)
list_institution_affiliates(institution_id = 12,
vb = TRUE)
list_institutions(search_string = "The Pennsylvania",
vb = TRUE)
```
## Clean-up
```{r}
logout_db()
```