Running 'spelling.R' [0s]
  Running 'testthat.R' [214s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(modelbased)
  Registered S3 methods overwritten by 'modelbased':
    method                     from      
    plot.visualisation_recipe  datawizard
    print.visualisation_recipe datawizard
  > 
  > osx <- tryCatch(
  +   {
  +     si <- Sys.info()
  +     if (!is.null(si["sysname"])) {
  +       si["sysname"] == "Darwin" || grepl("^darwin", R.version$os)
  +     } else {
  +       FALSE
  +     }
  +   },
  +   error = function(e) {
  +     FALSE
  +   }
  + )
  > 
  > if (!osx || (osx && getRversion() >= "4.0.0")) {
  +   test_check("modelbased")
  + }
  Starting 2 test processes
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-estimate_means.R:51:5): estimate_means ──────────────────────────
  Error in `.guess_arguments_levels(model, levels = levels)`: No suitable factor levels detected.
  Backtrace:
      █
   1. └─modelbased::estimate_means(model)
   2.   └─modelbased:::.guess_arguments(...)
   3.     └─modelbased:::.guess_arguments_levels(model, levels = levels)
  ── Error (test-estimate_predicted.R:81:5): estimate_response - Bayesian ────────
  Error in `model.frame.default(Terms, newdata, xlev = object$xlevels)`: factor as.factor(gear) has new levels 3.22222222222222, 3.44444444444444, 3.66666666666667, 3.88888888888889, 4.11111111111111, 4.33333333333333, 4.55555555555556, 4.77777777777778
  Backtrace:
       █
    1. └─modelbased::estimate_response(...)
    2.   └─modelbased:::.estimate_predicted(...)
    3.     ├─insight::get_predicted(...)
    4.     └─insight:::get_predicted.stanreg(...)
    5.       ├─rstantools::posterior_predict(...)
    6.       └─rstanarm:::posterior_predict.stanreg(...)
    7.         ├─base::do.call("pp_data", pp_data_args)
    8.         └─rstanarm:::pp_data(...)
    9.           └─rstanarm:::.pp_data(...)
   10.             ├─stats::model.frame(Terms, newdata, xlev = object$xlevels)
   11.             └─stats::model.frame.default(Terms, newdata, xlev = object$xlevels)
  
  [ FAIL 2 | WARN 10 | SKIP 0 | PASS 151 ]
  Error: Test failures
  Execution halted