Skip to content

Commit

Permalink
Better log messages
Browse files Browse the repository at this point in the history
  • Loading branch information
milanmlft committed Oct 16, 2024
1 parent 874fd67 commit 092bda2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions scripts/03_analyse_omop_cdm.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ cli::cli_h1("Generating summarys statistics")
library(omopcat)

if (Sys.getenv("ENV") == "prod") {
out_path <- Sys.getenv("OMOPCAT_DATA_PATH")
out_path <- file.path(Sys.getenv("OMOPCAT_DATA_PATH"))
cli::cli_alert_info("out_path set to {out_path}")

name <- Sys.getenv("DB_NAME")
con <- connect_to_db(
Expand Down Expand Up @@ -57,4 +58,4 @@ paths <- purrr::map_chr(names(all_tables), ~ file.path(out_path, glue::glue("omo
# Write the tables to disk as parquet
purrr::walk2(all_tables, paths, ~ nanoparquet::write_parquet(.x, .y))

cli::cli_alert_success("Summary statistics generated successfully and written to {.file paths}")
cli::cli_alert_success("Summary statistics generated successfully and written to {.file {paths}}")

0 comments on commit 092bda2

Please sign in to comment.