-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from Boehringer-Ingelheim/20-consider-includin…
…g-and-consuming-the-qc-documentation-from-dvtemplates 20 consider including and consuming the qc documentation from dv.templates
- Loading branch information
Showing
10 changed files
with
134 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# dv.templates 0.1.0 | ||
|
||
- add release checks | ||
- qc check is done with centralized scripts from dv.templates |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
template: | ||
bootstrap: 5 | ||
|
||
navbar: | ||
type: inverted | ||
structure: | ||
left: [intro, reference, articles, tutorials, news, qc] | ||
components: | ||
qc: | ||
text: Quality Control | ||
href: articles/qc.html | ||
|
||
articles: | ||
|
||
- title: Quality Control | ||
desc: Quality Control | ||
contents: | ||
- qc |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# validation (S) | ||
vdoc <- local({ | ||
# ########## | ||
# package_name is used # INSIDE # the sourced file below | ||
# ########## | ||
package_name <- read.dcf("../../DESCRIPTION")[, "Package"] | ||
utils_file_path <- system.file("validation", "utils-validation.R", package = package_name, mustWork = TRUE) | ||
source(utils_file_path, local = TRUE)[["value"]] | ||
}) | ||
specs <- vdoc[["specs"]] | ||
# validation (F) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
--- | ||
title: "Quality Control" | ||
output: | ||
rmarkdown::html_vignette | ||
vignette: > | ||
%\VignetteIndexEntry{Quality Control} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
|
||
```{r, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>", | ||
echo = FALSE | ||
) | ||
``` | ||
|
||
```{r, params, echo = FALSE, include = FALSE} | ||
val_param_rds <- "../inst/validation/results/val_param.rds" | ||
val_param_rds_exists <- file.exists(val_param_rds) | ||
if (file.exists(val_param_rds)) params <- readRDS(val_param_rds) | ||
``` | ||
|
||
```{r, results = "asis", echo = FALSE} | ||
if (val_param_rds_exists) { | ||
res <- knitr::knit_child("../inst/validation/val_report_child.Rmd", quiet = TRUE, envir = environment()) | ||
cat(res, sep = "\n") | ||
} else { | ||
"No quality control results found" | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
package_name <- "dv.templates" | ||
# validation (S) | ||
vdoc <- source( | ||
system.file("validation", "utils-validation.R", package = package_name, mustWork = TRUE), | ||
local = TRUE | ||
)[["value"]] | ||
vdoc <- local({ | ||
# ########## | ||
# package_name is used # INSIDE # the sourced file below | ||
# ########## | ||
package_name <- read.dcf("../../DESCRIPTION")[, "Package"] | ||
utils_file_path <- system.file("validation", "utils-validation.R", package = package_name, mustWork = TRUE) | ||
source(utils_file_path, local = TRUE)[["value"]] | ||
}) | ||
specs <- vdoc[["specs"]] | ||
# validation (F) |