Skip to content

Commit

Permalink
move inline opts into app template; silent logger; ignore lintr (#210)
Browse files Browse the repository at this point in the history
- closes #191
using temp solution of `"FATAL"` log threshold
- move `message` option specified individually for each app chunk to the
`app` template to keep it DRY
- replace `# nolint` with empty string to prevent it from being rendered
out

---------

Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
  • Loading branch information
pawelru and github-actions[bot] authored Feb 14, 2024
1 parent 79bb9a0 commit 1c9f1a0
Show file tree
Hide file tree
Showing 104 changed files with 111 additions and 104 deletions.
2 changes: 1 addition & 1 deletion book/_quarto.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ execute:
knitr:
opts_chunk:
echo: true
fig.width: 15
tidy: function(code, ...) gsub(pattern = "#\\s?nolint.*|#\\s?styler:.*", replacement = "", code)

editor: visual
highlight-style: github
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/efficacy/fstg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ height <- 5

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/efficacy/fstg02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ plot_v3.width <- 8

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/efficacy/mmrmg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/brg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/bwg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.general)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/cig01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ table

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/ippg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ plots

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/kmg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/ltg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/other/mng01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkcg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkcg02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkcg03.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkpg01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkpg02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/graphs/pharmacokinetic/pkpg06.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ plot

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ADA/adat01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ADA/adat02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ADA/adat03.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ADA/adat04a.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ADA/adat04b.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ECG/egt01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ECG/egt02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ECG/egt03.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ECG/egt04.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
#| code-fold: show
# In progress
Expand Down
2 changes: 1 addition & 1 deletion book/tables/ECG/egt05_qtcat.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet01_aesi.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -493,7 +493,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet02.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet02_smq.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet03.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet04.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -561,7 +561,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet04_pi.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet05.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet05_all.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet06.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -365,7 +365,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet06_smq.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet07.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet09.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet09_smq.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ Note that filtering AEs for relatedness to study drug is not a necessary data pr
It can be achieved using the `teal` module filter panel.
The example here pre-sets the filters using `AEREL = "Y"` in `adae`.

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/adverse-events/aet10.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ result
The desired frequency is specified in `prune_freq`.
For illustration, frequency is set to $\geq$ 35%.

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/concomitant-medications/cmt01.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,7 @@ result

Here, `adcm` is processed to keep only one path per treatment.

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
## Data reproducible code
Expand Down
2 changes: 1 addition & 1 deletion book/tables/concomitant-medications/cmt01a.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,7 @@ result

## `teal` App

```{r teal, message=FALSE, opts.label=c('skip_if_testing', 'app')}
```{r teal, opts.label=c('skip_if_testing', 'app')}
library(teal.modules.clinical)
adcm_keys <- c("STUDYID", "USUBJID", "ASTDTM", "CMSEQ", "ATC1", "ATC2", "ATC3", "ATC4")
Expand Down
Loading

0 comments on commit 1c9f1a0

Please sign in to comment.