Skip to content

Commit

Permalink
data dump needs the state file
Browse files Browse the repository at this point in the history
  • Loading branch information
gabora authored Aug 2, 2023
1 parent ca02823 commit f32ffb7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions data_dump.R
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,23 @@ args <- commandArgs(trailingOnly = TRUE)
# 1st: credentials for Google Drive
credentials <- args[[1]]

# State file path on google drive (stores the hooks):
state_file_path <- args[[2]]

# Dump file path on google drive:
file_path <- args[[2]]
file_path <- args[[3]]


# Sciwheel authentication token:
f1000auth <- args[[3]]
f1000auth <- args[[4]]


# Load the state from Drive
# authenticate to Google drive
drive_auth(path = rawToChar(base64enc::base64decode(credentials)), email = "[email protected]" )

# read the file from google drive
webhooks <- drive_read_string(file = file_path) %>% read_csv()
webhooks <- drive_read_string(file = state_file_path) %>% read_csv()



Expand Down

0 comments on commit f32ffb7

Please sign in to comment.