-
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.
add pkgdown examples to qc documentation
- Loading branch information
Showing
2 changed files
with
50 additions
and
0 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
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,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" | ||
} | ||
``` |