Skip to content

Commit

Permalink
Merge pull request #144 from metrumresearchgroup/update-renderQC-temp…
Browse files Browse the repository at this point in the history
…late

Update renderQC summary
  • Loading branch information
andersone1 authored Nov 13, 2024
2 parents 9379a11 + 38b0a51 commit 4c932b7
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 3 additions & 2 deletions R/renderQCSummary.R
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ renderQCSummary <- function(.output_dir = NULL) {
output_path <- file.path(.output_dir, output_file)

params_in <- list(
project = paste0(basename(logRoot()), " as of revision ", svnProjInfo()[["rev"]]),
project = basename(logRoot()),
repoHistory = repoHistory(),
qcLog = logRead(),
logPending = logPending()
logPending = logPending(),
projInfo = svnProjInfo()
)

rmarkdown::render(
Expand Down
8 changes: 8 additions & 0 deletions inst/templates/QCSummary.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ params:
repoHistory: NULL
qcLog: NULL
logPending: NULL
projInfo: NULL
output:
pdf_document:
toc: true
Expand All @@ -21,6 +22,13 @@ header-includes:
knitr::opts_chunk$set(echo = FALSE)
```

```{r, results='asis'}
writeLines("\\begin{center}")
writeLines(paste0("As of revision ", params$projInfo$rev))
writeLines("\\end{center}")
```


# QC Pending

```{r, results='asis'}
Expand Down

0 comments on commit 4c932b7

Please sign in to comment.