Skip to content

Commit ca97846

Browse files
committed
Test updates
1 parent 09dc4dd commit ca97846

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/testthat/test-update.R

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ test_that("update.glm_weightit() works", {
5858
expect_no_condition({
5959
fit2 <- glm_weightit(Y_B ~ A * (X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9),
6060
data = test_data, family = binomial,
61-
control = if (i) stop("bad error") else list())
61+
control = if (i) list(stop("bad error")) else list())
6262
})
6363

6464
i <- TRUE
@@ -240,7 +240,7 @@ test_that("update.glm_weightit() works with weightit", {
240240
expect_no_condition({
241241
fit2 <- glm_weightit(Y_B ~ A * (X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9),
242242
data = test_data, family = binomial, weightit = W0,
243-
control = if (i) stop("bad error") else list())
243+
control = if (i) list(stop("bad error")) else list())
244244
})
245245

246246
i <- TRUE
@@ -389,7 +389,7 @@ test_that("update.multinom_weightit() works with weightit", {
389389
expect_no_condition({
390390
fit2 <- multinom_weightit(Y_M ~ A * (X1 + X2 + X3 + X4 + X5),
391391
data = test_data, weightit = W0,
392-
control = if (i) stop("bad error") else list())
392+
control = if (i) list(stop("bad error")) else list())
393393
})
394394

395395
i <- TRUE
@@ -534,7 +534,7 @@ test_that("update.ordinal_weightit() works with weightit", {
534534
expect_no_condition({
535535
fit2 <- ordinal_weightit(Y_O ~ A * (X1 + X2 + X3 + X4 + X5),
536536
data = test_data, weightit = W0,
537-
control = if (i) stop("bad error") else list())
537+
control = if (i) list(stop("bad error")) else list())
538538
})
539539

540540
i <- TRUE
@@ -680,7 +680,7 @@ test_that("update.coxph_weightit() works with weightit", {
680680
expect_no_condition({
681681
fit2 <- coxph_weightit(survival::Surv(Y_S) ~ A * (X1 + X2 + X3 + X4 + X5 + X6 + X7 + X8 + X9),
682682
data = test_data, weightit = W0,
683-
control = if (i) stop("bad error") else list())
683+
control = if (i) list(stop("bad error")) else list())
684684
})
685685

686686
i <- TRUE

vignettes/estimating-effects.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ knitr::opts_chunk$set(echo = TRUE, eval = TRUE)
3232
options(width = 200, digits= 4)
3333
3434
me_ok <- requireNamespace("marginaleffects", quietly = TRUE)
35-
me_ok_new <- FALSE && me_ok && utils::packageVersion("marginaleffects") >= "0.25.0"
35+
me_ok_new <- me_ok && utils::packageVersion("marginaleffects") > "0.25.0.1"
3636
su_ok <- requireNamespace("survival", quietly = TRUE)
3737
```
3838

0 commit comments

Comments
 (0)