Running ‘test-all.R’ [62s/74s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > Sys.setenv("R_TESTS" = "")
  > library(testthat)
  > test_check("broom.mixed")
  Loading required package: broom.mixed
  GAMLSS-RS iteration 1: Global Deviance = 4771.925 
  GAMLSS-CG iteration 1: Global Deviance = 4771.013 
  GAMLSS-CG iteration 2: Global Deviance = 4770.994 
  GAMLSS-CG iteration 3: Global Deviance = 4770.994 
  new prediction 
  [ FAIL 13 | WARN 7 | SKIP 1 | PASS 192 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-rstanarm.R:32:5'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-alltibbles.R:64:13'): (code run outside of `test_that()`) ──────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. └─broom.mixed (local) testf("tidy", z) at test-alltibbles.R:64:12
    2.   ├─testthat::expect_is(get(fn_str)(obj), "tbl_df") at test-alltibbles.R:57:20
    3.   │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    4.   │   └─rlang::eval_bare(expr, quo_get_env(quo))
    5.   ├─get(fn_str)(obj)
    6.   └─broom.mixed:::tidy.merMod(obj)
    7.     ├─base (local) sum_fun(x)
    8.     └─lme4:::summary.merMod(x)
    9.       ├─nlme::VarCorr(object)
   10.       └─lme4:::VarCorr.merMod(object)
   11.         ├─base::structure(...)
   12.         └─lme4::mkVarCorr(...)
   13.           └─base::lapply(...)
   14.             └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:18:5'): tidy works on lme4 fits ─────────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(fit) at test-lme4.R:18:4
    2. └─broom.mixed:::tidy.merMod(fit)
    3.   ├─base (local) sum_fun(x)
    4.   └─lme4:::summary.merMod(x)
    5.     ├─nlme::VarCorr(object)
    6.     └─lme4:::VarCorr.merMod(object)
    7.       ├─base::structure(...)
    8.       └─lme4::mkVarCorr(...)
    9.         └─base::lapply(...)
   10.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:48:5'): tidy/glance works on glmer fits ─────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(gm) at test-lme4.R:48:4
    2. └─broom.mixed:::tidy.merMod(gm)
    3.   ├─base (local) sum_fun(x)
    4.   └─lme4:::summary.merMod(x)
    5.     ├─nlme::VarCorr(object)
    6.     └─lme4:::VarCorr.merMod(object)
    7.       ├─base::structure(...)
    8.       └─lme4::mkVarCorr(...)
    9.         └─base::lapply(...)
   10.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:76:5'): tidy works on non-linear fits ───────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(nm) at test-lme4.R:76:4
    2. └─broom.mixed:::tidy.merMod(nm)
    3.   ├─base (local) sum_fun(x)
    4.   └─lme4:::summary.merMod(x)
    5.     ├─nlme::VarCorr(object)
    6.     └─lme4:::VarCorr.merMod(object)
    7.       ├─base::structure(...)
    8.       └─lme4::mkVarCorr(...)
    9.         └─base::lapply(...)
   10.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:89:5'): scales works ────────────────────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─generics::tidy(fit, effects = "ran_pars") at test-lme4.R:89:4
   2. └─broom.mixed:::tidy.merMod(fit, effects = "ran_pars")
   3.   ├─nlme::VarCorr(x)
   4.   └─lme4:::VarCorr.merMod(x)
   5.     ├─base::structure(...)
   6.     └─lme4::mkVarCorr(...)
   7.       └─base::lapply(...)
   8.         └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:121:5'): tidy works with more than one RE grouping variable ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─generics::tidy(gfit, effects = "ran_pars") at test-lme4.R:121:4
   2. └─broom.mixed:::tidy.merMod(gfit, effects = "ran_pars")
   3.   ├─nlme::VarCorr(x)
   4.   └─lme4:::VarCorr.merMod(x)
   5.     ├─base::structure(...)
   6.     └─lme4::mkVarCorr(...)
   7.       └─base::lapply(...)
   8.         └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:168:7'): ran_vals works ─────────────────────────────────
  Error in `crossprod(Lamt, LL)`: "crossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(lmm2, "ran_vals") at test-lme4.R:168:6
    2. ├─broom.mixed:::tidy.merMod(lmm2, "ran_vals")
    3. │ ├─... %>% dplyr::mutate_if(is.factor, as.character)
    4. │ ├─nlme::ranef(x, condVar = TRUE)
    5. │ └─lme4:::ranef.merMod(x, condVar = TRUE)
    6. │   ├─lme4:::arrange.condVar(object, condVar(object, scaled = TRUE))
    7. │   │ └─lme4:::bdiag_to_mlist(cv, n)
    8. │   └─lme4:::condVar(object, scaled = TRUE)
    9. ├─dplyr::mutate_if(., is.factor, as.character)
   10. │ └─dplyr:::check_grouped(.tbl, "mutate", "if")
   11. │   └─dplyr::is_grouped_df(tbl)
   12. ├─dplyr::rename(...)
   13. └─base::as.data.frame(., stringsAsFactors = FALSE)
  ── Error ('test-lme4.R:174:5'): confint preserves term names ───────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(lmm0, conf.int = TRUE, conf.method = "Wald", effects = "fixed") at test-lme4.R:174:4
    2. └─broom.mixed:::tidy.merMod(...)
    3.   ├─base (local) sum_fun(x)
    4.   └─lme4:::summary.merMod(x)
    5.     ├─nlme::VarCorr(object)
    6.     └─lme4:::VarCorr.merMod(object)
    7.       ├─base::structure(...)
    8.       └─lme4::mkVarCorr(...)
    9.         └─base::lapply(...)
   10.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:183:6'): tidy respects conf.level ───────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(tmpf(), 232.3019, tolerance = 1e-04) at test-lme4.R:183:5
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─broom.mixed (local) tmpf()
    5.   ├─generics::tidy(lmm0, conf.int = TRUE, conf.level = cl) at test-lme4.R:181:9
    6.   └─broom.mixed:::tidy.merMod(lmm0, conf.int = TRUE, conf.level = cl)
    7.     ├─base (local) sum_fun(x)
    8.     └─lme4:::summary.merMod(x)
    9.       ├─nlme::VarCorr(object)
   10.       └─lme4:::VarCorr.merMod(object)
   11.         ├─base::structure(...)
   12.         └─lme4::mkVarCorr(...)
   13.           └─base::lapply(...)
   14.             └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:188:5'): effects='ran_pars' + conf.int works ────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─generics::tidy(...) at test-lme4.R:188:4
   2. └─broom.mixed:::tidy.merMod(...)
   3.   ├─nlme::VarCorr(x)
   4.   └─lme4:::VarCorr.merMod(x)
   5.     ├─base::structure(...)
   6.     └─lme4::mkVarCorr(...)
   7.       └─base::lapply(...)
   8.         └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lme4.R:211:5'): conf intervals for ranef in correct order ──────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. ├─generics::tidy(...) at test-lme4.R:211:4
   2. └─broom.mixed:::tidy.merMod(...)
   3.   ├─nlme::VarCorr(x)
   4.   └─lme4:::VarCorr.merMod(x)
   5.     ├─base::structure(...)
   6.     └─lme4::mkVarCorr(...)
   7.       └─base::lapply(...)
   8.         └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lmertest.R:7:5'): testing lmerTest p-values ────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─generics::tidy(lmm1, "fixed") at test-lmertest.R:7:4
    2. └─broom.mixed:::tidy.merMod(lmm1, "fixed")
    3.   ├─base (local) sum_fun(x, ddf = ddf.method)
    4.   └─lmerTest:::summary.lmerModLmerTest(x, ddf = ddf.method)
    5.     ├─base::summary(as(object, "lmerMod"), ...)
    6.     └─lme4:::summary.merMod(as(object, "lmerMod"), ...)
    7.       ├─nlme::VarCorr(object)
    8.       └─lme4:::VarCorr.merMod(object)
    9.         ├─base::structure(...)
   10.         └─lme4::mkVarCorr(...)
   11.           └─base::lapply(...)
   12.             └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-lmertest.R:34:7'): Wald t intervals ────────────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─testthat::expect_equal(...) at test-lmertest.R:34:6
    2. │ └─testthat::quasi_label(enquo(object), label, arg = "object")
    3. │   └─rlang::eval_bare(expr, quo_get_env(quo))
    4. └─broom.mixed (local) tmpf("Satterthwaite")
    5.   ├─generics::tidy(...) at test-lmertest.R:31:10
    6.   └─broom.mixed:::tidy.merMod(...)
    7.     ├─base (local) sum_fun(x, ddf = ddf.method)
    8.     └─lmerTest:::summary.lmerModLmerTest(x, ddf = ddf.method)
    9.       ├─base::summary(as(object, "lmerMod"), ...)
   10.       └─lme4:::summary.merMod(as(object, "lmerMod"), ...)
   11.         ├─nlme::VarCorr(object)
   12.         └─lme4:::VarCorr.merMod(object)
   13.           ├─base::structure(...)
   14.           └─lme4::mkVarCorr(...)
   15.             └─base::lapply(...)
   16.               └─lme4 (local) FUN(X[[i]], ...)
  
  [ FAIL 13 | WARN 7 | SKIP 1 | PASS 192 ]
  Error: Test failures
  Execution halted