Error in `RunCmdStanOptimizing(stan_data_temp, "mdcev", mle_options, ...)`: Package 'cmdstanr' is required for backend = 'cmdstanr'.

test_that("MLE bad model name errors", {
data_small <- mdcev.data(data_rec, subset = id <= 50,
id.var = "id", alt.var = "alt", choice = "quant")
data_test <- mdcev.data(data_test, subset = id2 <= 100,
# ── Module-level setup for CreateParmInfo tests ────────────────────────────
stan_model_options <- list(fixed_scale1 = fixed_scale1,
stan_data <- processMDCEVdata(formula, data_rec, stan_model_options)
parms_info <- rmdcev:::CreateParmInfo(stan_data, alt_names, algorithm, random_parameters)
sd2 <- processMDCEVdata(formula, data_rec, opts2)
pi2 <- CreateParmInfo(sd2, alt_names, algorithm, random_parameters)
sd <- processMDCEVdata(formula, data_rec, opts)
pi <- CreateParmInfo(sd, alt_names, algorithm, random_parameters)
sd <- processMDCEVdata(formula_ktee, data_rec, opts)