Running 'spelling.R' [0s]
  Running 'testthat.R' [160s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(modelbased)
  Registered S3 methods overwritten by 'modelbased':
    method                             from      
    standardize.visualisation_matrix   datawizard
    unstandardize.visualisation_matrix 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
  [ FAIL 6 | WARN 5 | SKIP 0 | PASS 161 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error (test-attributes_visualisation.R:37:5): attributes_link ───────────────
  Error in ``[.default`(xj, i)`: invalid subscript type 'list'
  Backtrace:
       ▆
    1. └─modelbased::estimate_link(model) at test-attributes_visualisation.R:37:4
    2.   └─modelbased:::.estimate_predicted(...)
    3.     ├─modelbased::visualisation_matrix(...)
    4.     └─modelbased:::visualisation_matrix.default(...)
    5.       ├─modelbased::visualisation_matrix(...)
    6.       └─modelbased:::visualisation_matrix.data.frame(...)
    7.         ├─...[]
    8.         └─base::`[.data.frame`(...)
    9.           ├─xj[i]
   10.           ├─base::`[.factor`(xj, i)
   11.           └─base::NextMethod("[")
  ── Error (test-estimate_expectation.R:31:5): estimate_expectation - data-grid ──
  Error in `xj[i]`: invalid subscript type 'list'
  Backtrace:
      ▆
   1. └─modelbased::estimate_expectation(model, data = "grid") at test-estimate_expectation.R:31:4
   2.   └─modelbased:::.estimate_predicted(...)
   3.     ├─modelbased::visualisation_matrix(...)
   4.     └─modelbased:::visualisation_matrix.default(...)
   5.       ├─modelbased::visualisation_matrix(...)
   6.       └─modelbased:::visualisation_matrix.data.frame(...)
   7.         ├─...[]
   8.         └─base::`[.data.frame`(...)
  ── Error (test-estimate_predicted.R:26:5): estimate_relation - shape ───────────
  Error in `xj[i]`: invalid subscript type 'list'
  Backtrace:
      ▆
   1. └─modelbased::estimate_relation(model, length = 10) at test-estimate_predicted.R:26:4
   2.   └─modelbased:::.estimate_predicted(...)
   3.     ├─modelbased::visualisation_matrix(...)
   4.     └─modelbased:::visualisation_matrix.default(...)
   5.       ├─modelbased::visualisation_matrix(...)
   6.       └─modelbased:::visualisation_matrix.data.frame(...)
   7.         ├─...[]
   8.         └─base::`[.data.frame`(...)
  ── Error (test-glmmTMB.R:43:5): estimate_slope - glmmTMB ───────────────────────
  Error in `regrid(result, transform = regrid, sigma = sigma, ...)`: formal argument "transform" matched by multiple actual arguments
  Backtrace:
      ▆
   1. └─modelbased::estimate_slopes(...) at test-glmmTMB.R:43:4
   2.   └─modelbased::model_emtrends(model, trend, at, ...)
   3.     └─emmeans::emtrends(...)
   4.       ├─base::do.call("ref_grid", c(rgargs, data = quote(data)))
   5.       └─emmeans::ref_grid(...)
  ── Error (test-visualisation_matrix_data.R:50:5): visualisation_matrix - dataframes ──
  Error in `xj[i]`: invalid subscript type 'list'
  Backtrace:
      ▆
   1. ├─modelbased::visualisation_matrix(...) at test-visualisation_matrix_data.R:50:4
   2. └─modelbased:::visualisation_matrix.data.frame(...)
   3.   ├─...[]
   4.   └─base::`[.data.frame`(...)
  ── Error (test-visualisation_matrix_models.R:9:5): visualisation_matrix - models ──
  Error in `xj[i]`: invalid subscript type 'list'
  Backtrace:
      ▆
   1. ├─testthat::expect_equal(...) at test-visualisation_matrix_models.R:9:4
   2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
   3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
   4. ├─modelbased::visualisation_matrix(model)
   5. └─modelbased:::visualisation_matrix.default(model)
   6.   ├─modelbased::visualisation_matrix(...)
   7.   └─modelbased:::visualisation_matrix.data.frame(...)
   8.     ├─...[]
   9.     └─base::`[.data.frame`(...)
  
  [ FAIL 6 | WARN 5 | SKIP 0 | PASS 161 ]
  Error: Test failures
  Execution halted