Skip to content

Commit

Permalink
Add OSF_PAT sys environment
Browse files Browse the repository at this point in the history
  • Loading branch information
ivelasq committed Aug 26, 2023
1 parent 3b0b8a8 commit 9641505
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions 10-ambarom-vignette.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -85,14 +85,16 @@ Many of the variables are coded as numeric and do not have intuitive variable na
```{r}
#| label: ambarom-read-secret
#| include: FALSE
library(osfr)
osf_auth(Sys.getenv("OSF_PAT"))
lapop_rds_files <- osf_retrieve_node("https://osf.io/z5c3m/") %>%
osf_ls_files(path="LAPOP_2021", n_max=40, pattern=".rds")
osf_ls_files(path = "LAPOP_2021",
n_max = 40,
pattern = ".rds")
filedet <- lapop_rds_files %>%
osf_download(conflicts="overwrite", path=here::here("osf_dl"))
osf_download(conflicts = "overwrite", path = here::here("osf_dl"))
ambarom_in <- filedet %>%
pull(local_path) %>%
Expand Down

0 comments on commit 9641505

Please sign in to comment.