Skip to content

Commit

Permalink
handle NULL arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit committed Dec 4, 2023
1 parent 7b86c69 commit 047a9db
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion R/chevron_tlg-S4methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ setMethod(
assert_flag(verbose)
assert_list(user_args, names = "unique")

user_args <- modifyList(user_args, list(...))
user_args <- modifyList(user_args, list(...), keep.null = TRUE)

if (verbose) {
cl <- match.call()
Expand Down
2 changes: 1 addition & 1 deletion tests/testthat/test-chevron_tlg-methods.R
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ test_that("run works as expected with partial match argument", {

test_that("run displays the symbols when available", {
user_args <- list(prune_0 = TRUE, not_used = iris, lbl_overall = "All Patients", row_split_var = "AEHLT")
arm_param = "ARM"
arm_param <- "ARM"
res <- capture_output(
tbl <- run(
aet02,
Expand Down

0 comments on commit 047a9db

Please sign in to comment.