data-raw/import_history.R

## code to prepare `import_history` dataset goes here

# nolint start: commented_code_linter
# Uncomment this section of code if you are running this script by itself
# secrets <- Sys.getenv("SECRETS_FOLDER") |> paste0("geoalign.json")
# datimutils::loginToDATIM(secrets)
# geo_session <- d2_default_session
# nolint end

import_history <- daa.analytics::get_import_history(geo_session = geo_session)
try(expr = {
  waldo::compare(daa.analytics::import_history, import_history)
}, silent = TRUE)
saveRDS(import_history, file = "support_files/import_history.rds")
pepfar-datim/daa-analytics documentation built on Nov. 24, 2024, 7:31 p.m.