diff --git a/tests/testthat/test-356-missingSummary.R b/tests/testthat/test-356-missingSummary.R index ce1cec1e..aa6a97b1 100644 --- a/tests/testthat/test-356-missingSummary.R +++ b/tests/testthat/test-356-missingSummary.R @@ -4,7 +4,7 @@ DesiredOutput <- record_id = structure(as.character(1:20), label = "Record ID"), redcap_event_name = rep("event_1_arm_1", 20), - redcap_data_access_group = rep(NA_character_, 20), +# redcap_data_access_group = rep(NA_character_, 20), redcap_repeat_instrument = rep(NA_character_, 20), redcap_repeat_instance = rep(NA_character_, 20), n_missing = c(6, 0, 0, 0, 1, 0, 1, 0, 1, 0, 1, 0, 1, 1, 0, 1, 0, 1, 0, 5), @@ -44,14 +44,14 @@ test_that( "Missing values are correctly identified around branching logic", { local_reproducible_output(width = 200) - expect_identical( - missingSummary(rcon, - dag = TRUE, - fields = "record_id", - records = as.character(1:20), - forms = "branching_logic"), - DesiredOutput - ) + mSum <- missingSummary( + rcon, + dag = FALSE, + fields = "record_id", + records = as.character(1:20), + forms = "branching_logic") + # DAG column is unreliable in this context + expect_identical(mSum,DesiredOutput) } )