diff --git a/tests/testthat/test-poped.R b/tests/testthat/test-poped.R index af6e9f1e..92ec14be 100644 --- a/tests/testthat/test-poped.R +++ b/tests/testthat/test-poped.R @@ -188,7 +188,6 @@ if (requireNamespace("PopED", quietly=TRUE)) { }) } - p <- phenoWt() e <- et(amt=25) %>% @@ -208,15 +207,15 @@ if (requireNamespace("PopED", quietly=TRUE)) { library(PopED) - expect_equal(list(ofv = 20.9439384305323, - fim = structure(c(38.9594470337844, - -0.384587494707983, 0, -0.384587494710757, 40.0037326388712, - 0, 0, 0, 800137.835488059), - dim = c(3L, 3L), - dimnames = list( - c("tcl", "tv", "sig_var_add.err"), - c("tcl", "tv", "sig_var_add.err"))), - rse = c(tcl = 3.31832359015444, tv = 30.9526385849823, sig_var_add.err = 11.1793768571875)), + expect_equal(list(ofv = 20.947993269923, + fim = lotri({ + tcl ~ 39.1196937156543 + tv ~ c(-0.386317381405573, 40.0037481563051) + sig_var_add.err ~ 800097.977314259 + }), + rse = c(tcl = 3.31152092974365, + tv = 30.9526397537534, + sig_var_add.err = 11.1796553130823)), evaluate_design(db), tolerance = 1e-4) ## v <- poped_optim(db, opt_xt=TRUE) @@ -224,8 +223,8 @@ if (requireNamespace("PopED", quietly=TRUE)) { ## expect_equal(v$ofv, 20.9503530468227, tolerance = 1e-4) - skip_if_not_installed("vdiffr") - vdiffr::expect_doppelganger("pheno_pred", plot_model_prediction(db, model_num_points = 300)) + ## skip_if_not_installed("vdiffr") + ## vdiffr::expect_doppelganger("pheno_pred", plot_model_prediction(db, model_num_points = 300)) })