Running ‘testthat.R’ [54s/77s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > # This file is part of the standard setup for testthat.
  > # It is recommended that you do not modify it.
  > #
  > # Where should you do additional test configuration?
  > #
  > # * https://r-pkgs.org/tests.html
  > # * https://testthat.r-lib.org/reference/test_package.html#special-files
  > library(testthat)
  > library(modelbased)
  > 
  > test_check("modelbased")
  Loading required package: emmeans
  We selected `at = c("Species")`.
  NOTE: Results may be misleading due to involvement in interactions
  We selected `at = c("Species")`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  NOTE: Results may be misleading due to involvement in interactions
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  Loading required package: logspline
  Loading required package: rstanarm
  Loading required package: Rcpp
  This is rstanarm version 2.21.4
  - See https://mc-stan.org/rstanarm/articles/priors for changes to default priors!
  - Default priors may change, so it's safest to specify priors, even if equivalent to the defaults.
  - For execution on a local, multicore CPU with excess RAM we recommend calling
    options(mc.cores = parallel::detectCores())
  
  Attaching package: 'rstanarm'
  
  The following object is masked from 'package:parameters':
  
      compare_models
  
  Loading required package: lme4
  Loading required package: Matrix
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  NOTE: Results may be misleading due to involvement in interactions
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  NOTE: Results may be misleading due to involvement in interactions
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  NOTE: Results may be misleading due to involvement in interactions
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Petal.Length"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Petal.Length"`.
  No variable was specified for contrast estimation. Selecting `contrast = "gear"`.
  NOTE: A nesting structure was detected in the fitted model:
      vs %in% am
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  NOTE: Results may be misleading due to involvement in interactions
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  We selected `at = c("gear")`.
  NOTE: Results may be misleading due to involvement in interactions
  We selected `at = c("cyl")`.
  We selected `at = c("Species")`.
  We selected `at = c("Species")`.
  We selected `at = c("Species")`.
  We selected `at = c("Species")`.
  We selected `at = c("Species")`.
  NOTE: Results may be misleading due to involvement in interactions
  We selected `at = c("Species")`.
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  NOTE: Results may be misleading due to involvement in interactions
  We selected `at = c("gear", "vs", "am")`.
  We selected `at = c("gear", "vs", "am")`.
  NOTE: A nesting structure was detected in the fitted model:
      vs %in% am
  We selected `at = c("factor1", "factor2", "factor3")`.
  We selected `at = c("factor1", "factor2", "factor3")`.
  We selected `at = c("Species")`.
  Loading required package: gamm4
  Loading required package: mgcv
  Loading required package: nlme
  
  Attaching package: 'nlme'
  
  The following object is masked from 'package:lme4':
  
      lmList
  
  This is mgcv 1.9-0. For overview type 'help("mgcv-package")'.
  This is gamm4 0.2-6
  
  Loading required package: glmmTMB
  No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
  No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
  No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
  NOTE: Results may be misleading due to involvement in interactions
  No numeric variable was specified for slope estimation. Selecting `trend = "Petal.Length"`.
  No numeric variable was specified for slope estimation. Selecting `trend = "Sepal.Width"`.
  No numeric variable was specified for slope estimation. Selecting `trend = "Sepal.Width"`.
  No numeric variable was specified for slope estimation. Selecting `trend = "Sepal.Width"`.
  Loading required package: marginaleffects
  We selected `at = c("Species")`.
  We selected `at = c("mined")`.
  We selected `at = c("mined")`.
  No variable was specified for contrast estimation. Selecting `contrast = "mined"`.
  No variable was specified for contrast estimation. Selecting `contrast = "mined"`.
  We selected `at = c("Species")`.
  No variable was specified for contrast estimation. Selecting `contrast = "Species"`.
  `estimate_response()` is deprecated.
    Please use `estimate_expectation()` (for conditional expected values) or
    `estimate_prediction()` (for individual case predictions) instead.
  `estimate_response()` is deprecated.
    Please use `estimate_expectation()` (for conditional expected values) or
    `estimate_prediction()` (for individual case predictions) instead.
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 134 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-estimate_contrasts.R:83:5'): estimate_contrasts - Frequentist ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─modelbased::estimate_contrasts(model) at test-estimate_contrasts.R:83:4
    2.   └─modelbased::get_emcontrasts(...)
    3.     └─emmeans::emmeans(...)
    4.       ├─base::do.call(ref_grid, args)
    5.       └─emmeans (local) `<fn>`(...)
    6.         ├─emmeans::emm_basis(...)
    7.         └─emmeans:::emm_basis.merMod(...)
    8.           └─pbkrtest::vcovAdj.lmerMod(object, 0)
    9.             ├─pbkrtest::get_SigmaG(object, details)
   10.             └─pbkrtest:::get_SigmaG.lmerMod(object, details)
   11.               └─pbkrtest:::.get_SigmaG(object, details)
   12.                 ├─nlme::VarCorr(object)
   13.                 └─lme4:::VarCorr.merMod(object)
   14.                   ├─base::structure(...)
   15.                   └─lme4::mkVarCorr(...)
   16.                     └─base::lapply(...)
   17.                       └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-estimate_contrasts.R:184:5'): estimate_contrasts - dfs ─────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─modelbased::estimate_contrasts(model, lmer.df = "kenward-roger") at test-estimate_contrasts.R:184:4
    2.   └─modelbased::get_emcontrasts(...)
    3.     └─emmeans::emmeans(...)
    4.       ├─base::do.call(ref_grid, args)
    5.       └─emmeans (local) `<fn>`(...)
    6.         ├─emmeans::emm_basis(...)
    7.         └─emmeans:::emm_basis.merMod(...)
    8.           └─pbkrtest::vcovAdj.lmerMod(object, 0)
    9.             ├─pbkrtest::get_SigmaG(object, details)
   10.             └─pbkrtest:::get_SigmaG.lmerMod(object, details)
   11.               └─pbkrtest:::.get_SigmaG(object, details)
   12.                 ├─nlme::VarCorr(object)
   13.                 └─lme4:::VarCorr.merMod(object)
   14.                   ├─base::structure(...)
   15.                   └─lme4::mkVarCorr(...)
   16.                     └─base::lapply(...)
   17.                       └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-estimate_grouplevel.R:8:5'): estimate_grouplevel - lme4 ────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─modelbased::estimate_grouplevel(model) at test-estimate_grouplevel.R:8:4
    2.   ├─parameters::model_parameters(...)
    3.   └─parameters:::model_parameters.merMod(...)
    4.     ├─base::do.call(".extract_parameters_mixed", args)
    5.     └─parameters:::.extract_parameters_mixed(...)
    6.       ├─insight::get_statistic(model, component = "all")
    7.       └─insight:::get_statistic.default(model, component = "all")
    8.         ├─base::suppressWarnings(stats::coef(summary(x)))
    9.         │ └─base::withCallingHandlers(...)
   10.         ├─stats::coef(summary(x))
   11.         ├─base::summary(x)
   12.         └─lme4:::summary.merMod(x)
   13.           ├─nlme::VarCorr(object)
   14.           └─lme4:::VarCorr.merMod(object)
   15.             ├─base::structure(...)
   16.             └─lme4::mkVarCorr(...)
   17.               └─base::lapply(...)
   18.                 └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-estimate_means.R:132:7'): estimate_means ───────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─modelbased::estimate_means(model) at test-estimate_means.R:132:6
    2.   └─modelbased::get_emmeans(...)
    3.     └─emmeans::emmeans(...)
    4.       ├─base::do.call(ref_grid, args)
    5.       └─emmeans (local) `<fn>`(...)
    6.         ├─emmeans::emm_basis(...)
    7.         └─emmeans:::emm_basis.merMod(...)
    8.           └─pbkrtest::vcovAdj.lmerMod(object, 0)
    9.             ├─pbkrtest::get_SigmaG(object, details)
   10.             └─pbkrtest:::get_SigmaG.lmerMod(object, details)
   11.               └─pbkrtest:::.get_SigmaG(object, details)
   12.                 ├─nlme::VarCorr(object)
   13.                 └─lme4:::VarCorr.merMod(object)
   14.                   ├─base::structure(...)
   15.                   └─lme4::mkVarCorr(...)
   16.                     └─base::lapply(...)
   17.                       └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-estimate_predicted.R:52:5'): estimate_link ─────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─gamm4::gamm4(...) at test-estimate_predicted.R:52:4
   2.   ├─lme4::VarCorr(ret$mer)
   3.   └─lme4:::VarCorr.merMod(ret$mer)
   4.     ├─base::structure(...)
   5.     └─lme4::mkVarCorr(...)
   6.       └─base::lapply(...)
   7.         └─lme4 (local) FUN(X[[i]], ...)
  
  [ FAIL 5 | WARN 1 | SKIP 0 | PASS 134 ]
  Error: Test failures
  Execution halted