diff --git a/pipeline/run-pipeline.R b/pipeline/run-pipeline.R index 4d16763..6cc7a1f 100644 --- a/pipeline/run-pipeline.R +++ b/pipeline/run-pipeline.R @@ -1,3 +1,10 @@ +# Get config variables +config::get( + file = "config/config.yml", + config = "staging" +) %>% + list2env(envir = .GlobalEnv) + # Fetch data tictoc::tic(msg = "INFO: Fetch data") source("scripts/fetch-data/fetch_data.R") diff --git a/scripts/fetch-data/fetch_data.R b/scripts/fetch-data/fetch_data.R index 9d197d8..062018f 100644 --- a/scripts/fetch-data/fetch_data.R +++ b/scripts/fetch-data/fetch_data.R @@ -4,13 +4,6 @@ library(dplyr) cat("Fetching data\n") -# Get config variables -config::get( - file = "config/config.yml", - config = "prod" -) %>% - list2env(envir = .GlobalEnv) - synLogin() # Get input files from synapse