tests/testthat/test-misc.R

stopifnot(require("testthat"),
          require("glmmTMB"))

test_that("predhess handling", {
  load(system.file("test_data", "cygu.rda", package = "glmmTMB"))
  jointmodel_tmb <- suppressWarnings(glmmTMB(model_form_joint,
                 data=model_df,
                 control=glmmTMBControl(
                     profile=TRUE
                 ),
                 family = binomial(link = "logit")
                 ))
  ## lame test, but we just want to make sure not to get error
  ## Error in fitTMB(TMBStruc) : object 'g' not found
  expect_is(jointmodel_tmb, "glmmTMB")
})

Try the glmmTMB package in your browser

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

glmmTMB documentation built on Oct. 7, 2023, 5:07 p.m.