diff --git a/R/create_pdf_report.R b/R/create_pdf_report.R index 0d5c47b..5c8aff1 100644 --- a/R/create_pdf_report.R +++ b/R/create_pdf_report.R @@ -220,9 +220,11 @@ create_pdf_report <- function(rv = rv, tmpdir = tempdir(), fileext = "-params.yml" ) + writeLines( text = c(paste0("source_system_name: \"", rv$source$system_name, "\""), paste0("target_system_name: \"", rv$target$system_name, "\""), + paste0("sitename: \"", rv$sitename, "\""), paste0("restricting_date: \"", get_restricting_date_info( restricting_date = rv$restricting_date, time = FALSE), "\"" )), diff --git a/data-raw/debugging_info.R b/data-raw/debugging_info.R index d650a85..e21ad0a 100644 --- a/data-raw/debugging_info.R +++ b/data-raw/debugging_info.R @@ -28,10 +28,11 @@ source_system_name = "kdb" # target_system_name = "p21csv" # target_system_name = "p21staging" # target_system_name = "omop" -target_system_name = "fhir_gw" +target_system_name = "dwh" # config_file = "../demo_settings_INTERNAL.yml" #utils_path = system.file("application/_utilities/", package = "miRacumDQA") utils_path = "../ume_dqatool/inst/application/_utilities/" +utils_path = "./inst/demo_data/utilities/" #mdr_filename = "samply_export.csv" mdr_filename = "mdr_mini.csv" #mdr_filename = "mdr_debug.csv" @@ -48,8 +49,8 @@ DIZtools::setenv_file( ) parallel = TRUE ncores = 4 -restricting_date_start = "2022-01-01" -restricting_date_end = "2022-12-31" +restricting_date_start = "2021-01-01" +restricting_date_end = "2021-12-31" # Sys.setenv("P21CSV_PATH" = "~/development/_p21/data/2018_merged/") diff --git a/inst/demo_data/utilities/RMD/DQA_report.qmd b/inst/demo_data/utilities/RMD/DQA_report.qmd index bd24624..e523583 100644 --- a/inst/demo_data/utilities/RMD/DQA_report.qmd +++ b/inst/demo_data/utilities/RMD/DQA_report.qmd @@ -17,24 +17,26 @@ # along with this program. If not, see . -title: "Data Quality Report: Comparison of {{< meta source_system_name >}} and {{< meta target_system_name >}}" -subtitle: "{{< meta restricting_date >}}" + +title: | + | Data Quality Report: Comparison of {{< meta source_system_name >}} and {{< meta target_system_name >}} + | \normalsize {{< meta restricting_date >}} author: "(c) Universitätsklinikum Erlangen" date: today -output: +format: pdf: - geometry: 'left=2.5cm,right=2.5cm,top=2cm,bottom=2cm' toc: true - toc_depth: 2 - number_sections: true - includes: - in_header: "./_header/header.tex" - keep_tex: true - pandoc_args: [ - "--variable", "graphics=yes", - "--variable", "compact-title=yes" - ] + toc-depth: 2 + number-sections: true + keep-tex: true + include-in-header: "./_header/header.tex" + geometry: + - left=25mm + - right=25mm + - top=20mm + - bottom=20mm + --- diff --git a/inst/demo_data/utilities/RMD/_header/header.tex b/inst/demo_data/utilities/RMD/_header/header.tex index d94d92e..43b1829 100644 --- a/inst/demo_data/utilities/RMD/_header/header.tex +++ b/inst/demo_data/utilities/RMD/_header/header.tex @@ -19,3 +19,23 @@ \usepackage{float} \usepackage{pdflscape} \usepackage{longtable} + +\thispagestyle{empty} + +\pretitle{ + \begin{center} + \LARGE + \vspace{4cm} +} +\posttitle{ +\end{center} +} + +\predate{ + \begin{center} +} +\postdate{ +\end{center} +\newpage +} +