tests/testthat/test-zzz.R

test_that(".onLoad does not modified prespecified options", {
  withr::local_options(mixvlmc.predictive = "foo")
  mixvlmc:::.onLoad()
  expect_equal(options()$mixvlmc.predictive, "foo")
})

test_that(".onLoad sets default options", {
  withr::local_options(mixvlmc.predictive = NULL)
  mixvlmc:::.onLoad()
  expect_equal(options()$mixvlmc.predictive, "glm")
})

Try the mixvlmc package in your browser

Any scripts or data that you put into this service are public.

mixvlmc documentation built on June 8, 2025, 12:35 p.m.