Skip to content

Commit

Permalink
Merge branch 'main' into 546-fix-verdepcheck@main
Browse files Browse the repository at this point in the history
  • Loading branch information
averissimo authored Jun 10, 2024
2 parents 2df02d3 + 2f0508a commit 056a4ac
Show file tree
Hide file tree
Showing 7 changed files with 936 additions and 929 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Type: Package
Package: chevron
Title: Standard TLGs for Clinical Trials Reporting
Version: 0.2.6.9005
Date: 2024-05-23
Version: 0.2.6.9006
Date: 2024-06-05
Authors@R: c(
person("Liming", "Li", , "[email protected]", role = c("aut", "cre")),
person("Benoit", "Falquet", , "[email protected]", role = "aut"),
Expand Down
2 changes: 1 addition & 1 deletion NEWS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# chevron 0.2.6.9005
# chevron 0.2.6.9006

* Add `AEL02`, `AEL03` templates.
* Modify the post processing of `MHT01` to allow multiple `row_split_var`.
Expand Down
918 changes: 459 additions & 459 deletions tests/testthat/_snaps/ael02.md

Large diffs are not rendered by default.

918 changes: 459 additions & 459 deletions tests/testthat/_snaps/ael03.md

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions tests/testthat/test-ael02.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_that("ael02 works with adae dataset", {
)
expect_list(res, len = 3)
res <- lapply(res, "[", 1:10, )
expect_snapshot(cat(export_as_txt(res, lpp = 100)))
expect_snapshot(cat(export_as_txt(res, lpp = 100, cpp = 110)))
})

test_that("ael02 can handle all missing values", {
Expand All @@ -20,11 +20,12 @@ test_that("ael02 can handle all missing values", {

res <- expect_silent(run(ael02, proc_data))
expect_list(res, len = 1)
expect_snapshot(cat(export_as_txt(res[[1]][1:50, ], lpp = 100)))
expect_snapshot(cat(export_as_txt(res[[1]][1:50, ], lpp = 100, cpp = 110)))
})

# ael02 functions ----


test_that("ael02 functions work as expected", {
res <- expect_silent(
ael02_pre(syn_data) %>%
Expand All @@ -33,5 +34,5 @@ test_that("ael02 functions work as expected", {

expect_list(res, len = 3)
res <- lapply(res, "[", 1:10, )
expect_snapshot(cat(export_as_txt(res, lpp = 100)))
expect_snapshot(cat(export_as_txt(res, lpp = 100, cpp = 110)))
})
6 changes: 3 additions & 3 deletions tests/testthat/test-ael03.R
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ test_that("ael03 works with adae dataset", {
)
expect_list(res, len = 3)
res <- lapply(res, "[", 1:10, )
expect_snapshot(cat(export_as_txt(res, lpp = 100)))
expect_snapshot(cat(export_as_txt(res, lpp = 100, cpp = 110)))
})

test_that("ael03 can handle all missing values", {
Expand All @@ -21,7 +21,7 @@ test_that("ael03 can handle all missing values", {
res <- expect_silent(run(ael03, proc_data))
expect_list(res, len = 1)

expect_snapshot(cat(export_as_txt(res[[1]][1:50, ], lpp = 100)))
expect_snapshot(cat(export_as_txt(res[[1]][1:50, ], lpp = 100, cpp = 110)))
})

# ael03 functions ----
Expand All @@ -34,5 +34,5 @@ test_that("ael03 functions work as expected", {

expect_list(res, len = 3)
res <- lapply(res, "[", 1:10, )
expect_snapshot(cat(export_as_txt(res, lpp = 100)))
expect_snapshot(cat(export_as_txt(res, lpp = 100, cpp = 110)))
})
10 changes: 8 additions & 2 deletions tests/testthat/test-utils.R
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,10 @@ test_that("get_section_div works", {

test_that("grob_list is deprecated", {
withr::with_options(
list(lifecycle_verbosity = "warning"),
c(
opts_partial_match_old,
list(lifecycle_verbosity = "warning")
),
{
graph <- run(chevron::mng01, syn_data, dataset = "adlb")
graph <- ggplot2::ggplotGrob(graph[[3]])
Expand All @@ -303,7 +306,10 @@ test_that("grob_list is deprecated", {

test_that("gg_list is deprecated", {
withr::with_options(
list(lifecycle_verbosity = "warning"),
c(
opts_partial_match_old,
list(lifecycle_verbosity = "warning")
),
{
graph <- run(chevron::mng01, syn_data, dataset = "adlb")

Expand Down

0 comments on commit 056a4ac

Please sign in to comment.