-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path_tmp.qmd
More file actions
44 lines (31 loc) · 880 Bytes
/
_tmp.qmd
File metadata and controls
44 lines (31 loc) · 880 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
---
title: "_tmp"
format: html
---
## About
This page documents Rick Gilmore's explorations of new functions for the analytics site.
## Investigator footprint
The goal of this analysis is to determine an investigator's footprint on Databrary.
```{r}
#| label: setup
library(databraryr)
login_db(email = Sys.getenv("DB_LOGIN_ACCT"),
password = Sys.getenv("DB_LOGIN_PW"),
client_id = Sys.getenv("DB_API_CLIENT_ID"),
client_secret = Sys.getenv("DB_API_CLIENT_SECRET"),
store = FALSE,
overwrite = FALSE)
```
Get list of authorized investigators
```{r}
auth_inv <- databraryr::list_users(include_suspended = FALSE,
is_authorized_investigator = TRUE)
```
Select one.
```{r}
this_ai <- auth_inv |>
dplyr::filter(user_id == 6)
```
```{r}
this_ai_affil <- list_user_affiliates(user_id = 6)
```