Skip to content

Commit

Permalink
chore: merged fix for quarto pdf
Browse files Browse the repository at this point in the history
  • Loading branch information
kapsner committed Jun 27, 2024
2 parents 4c9c47d + 3cc3ab4 commit 6aaae8d
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 16 deletions.
2 changes: 2 additions & 0 deletions R/create_pdf_report.R
Original file line number Diff line number Diff line change
Expand Up @@ -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), "\""
)),
Expand Down
7 changes: 4 additions & 3 deletions data-raw/debugging_info.R
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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/")

Expand Down
28 changes: 15 additions & 13 deletions inst/demo_data/utilities/RMD/DQA_report.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -17,24 +17,26 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.


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


---

Expand Down
20 changes: 20 additions & 0 deletions inst/demo_data/utilities/RMD/_header/header.tex
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

0 comments on commit 6aaae8d

Please sign in to comment.