Skip to content

Commit 0bc1963

Browse files
shajoezhuMelkiades
andauthored
resolve green ci (#1293)
close #1282 --------- Signed-off-by: Davide Garolini <[email protected]> Signed-off-by: Joe Zhu <[email protected]> Co-authored-by: Davide Garolini <[email protected]>
1 parent 0817483 commit 0bc1963

File tree

5 files changed

+8
-5
lines changed

5 files changed

+8
-5
lines changed

DESCRIPTION

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,8 @@ Suggests:
6363
testthat (>= 3.1.9),
6464
withr (>= 2.0.0)
6565
VignetteBuilder:
66-
knitr
66+
knitr,
67+
rmarkdown
6768
RdMacros:
6869
lifecycle,
6970
Rdpack

tests/testthat/setup.R

-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
# Extra libraries (suggested) for tests
22
library(dplyr)
3-
library(nestcolor)
43

54
# skip_if_too_deep
65
skip_if_too_deep <- function(depth) {

tests/testthat/test-individual_patient_plot.R

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ adlb <- tern_ex_adlb %>%
33
slice(1:36)
44

55
testthat::test_that("h_g_ipp works correctly", {
6+
skip_if_not_installed("nestcolor")
7+
require("nestcolor", quietly = TRUE)
8+
69
testthat::expect_silent(h_g_ipp(
710
df = adlb,
811
xvar = "AVISIT",

vignettes/tables.Rmd

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The table layout is materialized with the `rtables::build_table` function and th
5454
The `tern` analyze functions are wrappers around `rtables::analyze` function, they offer various methods useful from the perspective of clinical trials and other statistical projects.
5555

5656
Examples of the `tern` analyze functions are `count_occurrences`, `summarize_ancova` or `analyze_vars`.
57-
As there is no one prefix to identify all `tern` analyze functions it is recommended to use the [the tern website functions reference](https://insightsengineering.github.io/tern/main/reference/index.html).
57+
As there is no one prefix to identify all `tern` analyze functions it is recommended to use the [the tern website functions reference](https://insightsengineering.github.io/tern/latest-tag/reference/index.html).
5858

5959
### Internals of `tern` Analyze Functions
6060

vignettes/tern.Rmd

+2-2
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ data visualizations helper functions:
6969
- ...
7070

7171

72-
The reference of `tern` functions is available on [the tern website functions reference](https://insightsengineering.github.io/tern/main/reference/index.html).
72+
The reference of `tern` functions is available on [the tern website functions reference](https://insightsengineering.github.io/tern/latest-tag/reference/index.html).
7373

7474
---------
7575

@@ -82,7 +82,7 @@ The table layout is materialized with the `rtables::build_table` function and th
8282
The `tern` analytical functions are wrappers around the `rtables::analyze` function; they offer various methods useful from the perspective of clinical trials and other statistical projects.
8383

8484
Examples of the `tern` analytical functions are `count_occurrences`, `summarize_ancova` and `analyze_vars`.
85-
As there is no one prefix to identify all `tern` analytical functions it is recommended to use the reference subsection on [the tern website](https://insightsengineering.github.io/tern/main/reference/index.html).
85+
As there is no one prefix to identify all `tern` analytical functions it is recommended to use the reference subsection on [the tern website](https://insightsengineering.github.io/tern/latest-tag/reference/index.html).
8686

8787
In the `rtables` code below we first describe the two tables and assign the descriptions to the variables `lyt` and `lyt2`. We then built the tables using the actual data with `rtables::build_table`. The description of a table is called a table **layout**. The **analyze instruction** adds to the layout that the `ARM` variable should be analyzed with the `mean` analysis function and the result should be rounded to 1 decimal place.
8888
Hence, a **layout** is “pre-data”; that is, it’s a description of **how to build a table once we get data**.

0 commit comments

Comments
 (0)