As recommended by R Packages, this PR makes all existing tests self-contained by creating helper functions to wrap the top-level logic that used to have awkward "test file scope". Now all test files only contain individual test_that() blocks.
I also used invisible(capture.output()) to suppress printing from tests for MaxCombo and WLR, where survMisc::comp() calls will generate long printed outputs.
As recommended by R Packages, this PR makes all existing tests self-contained by creating helper functions to wrap the top-level logic that used to have awkward "test file scope". Now all test files only contain individual
test_that()
blocks.I also used
invisible(capture.output())
to suppress printing from tests for MaxCombo and WLR, wheresurvMisc::comp()
calls will generate long printed outputs.