tests/testthat/test-06_stan_models.R

context("stan models")

for (model in msglm:::msglm_model_names()) {
    test_that(paste0("stan model '", model, "' compiles"), {
        expect_class(msglm:::msglm_stan_model(model), "CmdStanModel")
    })
}
innatelab/msglm documentation built on March 23, 2023, 7:17 a.m.