You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
expect_error(ds.cor('D3', naAction='casewise.complete', type='split'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed=TRUE)
# expect_error(ds.cor('D3', naAction='casewise.complete', type='split'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed = TRUE)
52
+
expect_error(ds.cor('D3', type='split'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed=TRUE)
51
53
res.errors<-DSI::datashield.errors()
52
54
53
55
expect_length(res.errors, 1)
54
-
expect_equal(res.errors$sim2, "Command 'corDS(\"D3\", NULL, \"casewise.complete\")' failed on 'sim2': Error while evaluating 'dsBase::corDS(\"D3\", NULL, \"casewise.complete\")' -> Error : ERROR: The ratio of the number of variables over the number of individual-level\n records exceeds the allowed threshold, there is a possible risk of disclosure\n", fixed=TRUE)
56
+
expect_equal(res.errors$sim2, "Command 'corDS(\"D3\", NULL)' failed on 'sim2': Error while evaluating 'dsBase::corDS(\"D3\", NULL)' -> Error : ERROR: The ratio of the number of variables over the number of individual-level\n records exceeds the allowed threshold, there is a possible risk of disclosure\n", fixed=TRUE)
expect_error(ds.cor('D3', naAction='casewise.complete', type='combine'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed=TRUE)
# expect_error(ds.cor('D3', naAction='casewise.complete', type='combine'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed = TRUE)
77
+
expect_error(ds.cor('D3', type='combine'), "There are some DataSHIELD errors, list them with datashield.errors()", fixed=TRUE)
74
78
res.errors<-DSI::datashield.errors()
75
79
76
80
expect_length(res.errors, 1)
77
-
expect_equal(res.errors$sim2, "Command 'corDS(\"D3\", NULL, \"casewise.complete\")' failed on 'sim2': Error while evaluating 'dsBase::corDS(\"D3\", NULL, \"casewise.complete\")' -> Error : ERROR: The ratio of the number of variables over the number of individual-level\n records exceeds the allowed threshold, there is a possible risk of disclosure\n", fixed=TRUE)
81
+
expect_equal(res.errors$sim2, "Command 'corDS(\"D3\", NULL)' failed on 'sim2': Error while evaluating 'dsBase::corDS(\"D3\", NULL)' -> Error : ERROR: The ratio of the number of variables over the number of individual-level\n records exceeds the allowed threshold, there is a possible risk of disclosure\n", fixed=TRUE)
0 commit comments