Skip to content

Commit d9ac10c

Browse files
committed
Capture output from tests
1 parent 8a8923b commit d9ac10c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/testthat/test_otherformats.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,12 @@ test_that("radial MR dat", {
4343

4444
test_that("radial MR", {
4545
w <- dat_to_RadialMR(dat)
46-
expect_warning(o <- RadialMR::ivw_radial(w[[1]]))
46+
utils::capture.output(expect_warning(o <- RadialMR::ivw_radial(w[[1]])))
4747
expect_true(class(o) == "IVW")
4848
})
4949

5050

5151
test_that("radial MR", {
52-
w <- mr_ivw_radial(dat$beta.exposure, dat$beta.outcome, dat$se.exposure, dat$se.outcome)
52+
utils::capture.output(w <- mr_ivw_radial(dat$beta.exposure, dat$beta.outcome, dat$se.exposure, dat$se.outcome))
5353
expect_true(class(w) == "list")
5454
})

0 commit comments

Comments
 (0)