test_that("origin sim plot works with correct output", { announce_snapshot_file(name = "sim_origin.png") skip_on_ci() skip_on_os("windows") skip_on_os("mac") withr::local_seed(42) restore <- getTrnglSeed() setTrnglSeed(42) res <- mackResidSim(UKMotor, "origin", cond = TRUE, resid_type = "standardised", progress = FALSE, n_boot = 1e2, n_sim = 1e2 ) expect_snapshot_file(save_png(plot(res)), "sim_origin.png") setTrnglSeed(restore) })