From 13b1a0d836462f3fe37e99d7f951bfc7e24078fc Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Fri, 1 Mar 2024 16:12:56 +0100 Subject: [PATCH 1/2] exclude for stable --- book/tables/ECG/egt01.qmd | 4 +++- book/tables/efficacy/ratet01.qmd | 3 ++- book/tables/lab-results/lbt01.qmd | 3 ++- book/tables/safety/enrollment01.qmd | 3 ++- book/tables/vital-signs/vst01.qmd | 3 ++- 5 files changed, 11 insertions(+), 5 deletions(-) diff --git a/book/tables/ECG/egt01.qmd b/book/tables/ECG/egt01.qmd index 3f92f2619..47d64504b 100644 --- a/book/tables/ECG/egt01.qmd +++ b/book/tables/ECG/egt01.qmd @@ -83,7 +83,9 @@ result ## `teal` App -```{r teal, opts.label=c('skip_if_testing', 'app')} +```{r teal, opts.label=c('skip_if_testing', 'app'), eval = packageVersion("teal.modules.clinical") >= "0.9.0.9007"} +# https://github.com/insightsengineering/teal.modules.clinical/pull/1087 + library(teal.modules.clinical) ## Data reproducible code diff --git a/book/tables/efficacy/ratet01.qmd b/book/tables/efficacy/ratet01.qmd index 4e1d6fb85..63543372e 100644 --- a/book/tables/efficacy/ratet01.qmd +++ b/book/tables/efficacy/ratet01.qmd @@ -30,7 +30,8 @@ anl <- df_explicit_na(anl) ## Customized Table -```{r variant1, test = list(result_v1 = "result")} +```{r variant1, test = list(result_v1 = "result"), eval = packageVersion("tern") >= "0.9.3.9005"} +# https://github.com/insightsengineering/tern/pull/1163 lyt <- basic_table(show_colcounts = TRUE) %>% split_cols_by("ARM", ref_group = "B: Placebo", split_fun = ref_group_position("first")) %>% analyze_vars( diff --git a/book/tables/lab-results/lbt01.qmd b/book/tables/lab-results/lbt01.qmd index cd617f874..d69375504 100644 --- a/book/tables/lab-results/lbt01.qmd +++ b/book/tables/lab-results/lbt01.qmd @@ -87,7 +87,8 @@ result ## `teal` App -```{r teal, opts.label=c('skip_if_testing', 'app')} +```{r teal, opts.label=c('skip_if_testing', 'app'), eval = packageVersion("teal.modules.clinical") >= "0.9.0.9007"} +# https://github.com/insightsengineering/teal.modules.clinical/pull/1087 library(teal.modules.clinical) ## Data reproducible code diff --git a/book/tables/safety/enrollment01.qmd b/book/tables/safety/enrollment01.qmd index e93098897..038e4ddf4 100644 --- a/book/tables/safety/enrollment01.qmd +++ b/book/tables/safety/enrollment01.qmd @@ -126,7 +126,8 @@ result Note that for this module application, only the variables passed into `by_vars` are used when `row_groups` is selected. Variables passed into `analyze_vars` are additionally used when `row_groups` is deselected. -```{r teal, opts.label=c('skip_if_testing', 'app')} +```{r teal, opts.label=c('skip_if_testing', 'app'), eval = packageVersion("teal.modules.clinical") >= "0.9.0.9003"} +# https://github.com/insightsengineering/teal.modules.clinical/pull/1083 library(teal.modules.clinical) ## Data reproducible code diff --git a/book/tables/vital-signs/vst01.qmd b/book/tables/vital-signs/vst01.qmd index 018bc207a..f4041d873 100644 --- a/book/tables/vital-signs/vst01.qmd +++ b/book/tables/vital-signs/vst01.qmd @@ -124,7 +124,8 @@ result ## `teal` App -```{r teal, opts.label=c('skip_if_testing', 'app')} +```{r teal, opts.label=c('skip_if_testing', 'app'), eval = packageVersion("teal.modules.clinical") >= "0.9.0.9007"} +# https://github.com/insightsengineering/teal.modules.clinical/pull/1087 library(teal.modules.clinical) ## Data reproducible code From bdb306d892083cf43b9a815a853b4e63267011dc Mon Sep 17 00:00:00 2001 From: Pawel Rucki <12943682+pawelru@users.noreply.github.com> Date: Mon, 4 Mar 2024 09:46:19 +0100 Subject: [PATCH 2/2] add webshot2 to suggested --- package/DESCRIPTION | 1 + 1 file changed, 1 insertion(+) diff --git a/package/DESCRIPTION b/package/DESCRIPTION index c6f7497ab..34addaaee 100644 --- a/package/DESCRIPTION +++ b/package/DESCRIPTION @@ -46,6 +46,7 @@ Suggests: tibble, tidyr, vdiffr (>= 1.0.0), + webshot2, withr Encoding: UTF-8 Language: en-US