Running ‘testthat_tests.R’ [15s/22s]
Running the tests in ‘tests/testthat_tests.R’ failed.
Complete output:
  > library(testthat)
  > library(WeMix)
  Loading required package: lme4
  Loading required package: Matrix
  WeMix v4.0.0
  
  > test_check('WeMix')
  [ FAIL 20 | WARN 0 | SKIP 14 | PASS 7 ]
  
  ══ Skipped tests (14) ══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
  • On CRAN (14): 'test-1-main.R:159:3', 'test-1-main.R:189:3', 'test-1-main.R:220:3', 'test-1-main.R:321:3', 'test-1-main.R:717:3', 'test-1-main.R:801:3', 'test-1-main.R:860:3', 'test-1-main.R:1026:3', 'test-1-main.R:1118:5', 'test-1-main.R:1214:3', 'test-1-main.R:1240:3', 'test-2-four-level.R:2:1', 'test-4-ECLS.R:2:1', 'test-5-TIMSS.R:2:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════
  ── Failure ('test-0-errors.R:19:3'): Errors correctly report ───────────────────
  `mix(...)` threw an error with unexpected message.
  Expected match: "(?=.*3)(?=.*expecting 2)"
  Actual message: "\"tcrossprod\" is not a BUILTIN function"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-0-errors.R:19:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─WeMix::mix(...)
    7.   ├─base::summary(lme)
    8.   └─lme4:::summary.merMod(lme)
    9.     ├─nlme::VarCorr(object)
   10.     └─lme4:::VarCorr.merMod(object)
   11.       ├─base::structure(...)
   12.       └─lme4::mkVarCorr(...)
   13.         └─base::lapply(...)
   14.           └─lme4 (local) FUN(X[[i]], ...)
  ── Failure ('test-0-errors.R:23:3'): Errors correctly report ───────────────────
  `mix(Reaction ~ Days + (1 | Subject), data = sleepstudyU, weights = c("weight1L1"))` threw an error with unexpected message.
  Expected match: "(?=.*1)(?=.*expecting 2)"
  Actual message: "\"tcrossprod\" is not a BUILTIN function"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-0-errors.R:23:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─WeMix::mix(...)
    7.   ├─base::summary(lme)
    8.   └─lme4:::summary.merMod(lme)
    9.     ├─nlme::VarCorr(object)
   10.     └─lme4:::VarCorr.merMod(object)
   11.       ├─base::structure(...)
   12.       └─lme4::mkVarCorr(...)
   13.         └─base::lapply(...)
   14.           └─lme4 (local) FUN(X[[i]], ...)
  ── Failure ('test-0-errors.R:56:3'): Errors correctly report ───────────────────
  `capture.output(...)` threw an error with unexpected message.
  Expected match: "level-2 weights vary"
  Actual message: "\"tcrossprod\" is not a BUILTIN function"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-0-errors.R:56:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─utils::capture.output(...)
    7. │ └─base::withVisible(...elt(i))
    8. ├─base::suppressMessages(...)
    9. │ └─base::withCallingHandlers(...)
   10. └─WeMix::mix(...)
   11.   ├─base::summary(lme)
   12.   └─lme4:::summary.merMod(lme)
   13.     ├─nlme::VarCorr(object)
   14.     └─lme4:::VarCorr.merMod(object)
   15.       ├─base::structure(...)
   16.       └─lme4::mkVarCorr(...)
   17.         └─base::lapply(...)
   18.           └─lme4 (local) FUN(X[[i]], ...)
  ── Failure ('test-0-errors.R:79:3'): Errors correctly report ───────────────────
  `capture.output(...)` threw an error with unexpected message.
  Expected match: "nested model"
  Actual message: "\"tcrossprod\" is not a BUILTIN function"
  Backtrace:
       ▆
    1. ├─testthat::expect_error(...) at test-0-errors.R:79:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. ├─utils::capture.output(...)
    7. │ └─base::withVisible(...elt(i))
    8. ├─base::suppressMessages(...)
    9. │ └─base::withCallingHandlers(...)
   10. └─WeMix::mix(...)
   11.   ├─base::summary(lme)
   12.   └─lme4:::summary.merMod(lme)
   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-1-main.R:20:3'): The model runs ────────────────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:20:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:67:3'): Factor binomial ───────────────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:67:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:102:3'): Agrees with lme4 3,handles missing data ──────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─testthat::expect_warning(...) at test-1-main.R:102:2
    2. │ └─testthat:::quasi_capture(...)
    3. │   ├─testthat (local) .capture(...)
    4. │   │ └─base::withCallingHandlers(...)
    5. │   └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    6. └─WeMix::mix(...)
    7.   ├─base::summary(lme)
    8.   └─lme4:::summary.merMod(lme)
    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-1-main.R:122:3'): Mean Centering Matches HLM results ───────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:122:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:172:3'): Repeating is the same as weighting: L1 replicate vs weighting ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:172:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:287:3'): L2 replicate vs weighting ────────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─base::system.time(...) at test-1-main.R:287:2
    2. └─WeMix::mix(...)
    3.   ├─base::summary(lme)
    4.   └─lme4:::summary.merMod(lme)
    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-1-main.R:301:3'): Repeating is the same as weighting: L1 replicate vs weighting, 2 REs ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:301:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:356:3'): Unweighted three level model ─────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:356:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:389:3'): Unweighted three level model, binomial ───────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-1-main.R:389:2
    2. │ └─base::withCallingHandlers(...)
    3. └─WeMix::mix(...)
    4.   ├─base::summary(lme)
    5.   └─lme4:::summary.merMod(lme)
    6.     ├─nlme::VarCorr(object)
    7.     └─lme4:::VarCorr.merMod(object)
    8.       ├─base::structure(...)
    9.       └─lme4::mkVarCorr(...)
   10.         └─base::lapply(...)
   11.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:420:3'): Weighted v unweighted replicated two level model ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:420:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:522:3'): Weighted v unweighted replicated three level model ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:522:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:565:3'): Weighted v unweighted replicated two level model, binomial ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:565:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:648:3'): Weighted v unweighted replicated two level model, binomial with probit link ──
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
       ▆
    1. ├─base::suppressWarnings(...) at test-1-main.R:648:2
    2. │ └─base::withCallingHandlers(...)
    3. └─WeMix::mix(...)
    4.   ├─base::summary(lme)
    5.   └─lme4:::summary.merMod(lme)
    6.     ├─nlme::VarCorr(object)
    7.     └─lme4:::VarCorr.merMod(object)
    8.       ├─base::structure(...)
    9.       └─lme4::mkVarCorr(...)
   10.         └─base::lapply(...)
   11.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:838:3'): Three level model slash and colon ────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:838:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:992:3'): Weighted three level model ───────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:992:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  ── Error ('test-1-main.R:1008:3'): Test for Wald Tests using   ─────────────────
  Error in `tcrossprod(sc * Li)`: "tcrossprod" is not a BUILTIN function
  Backtrace:
      ▆
   1. └─WeMix::mix(...) at test-1-main.R:1008:2
   2.   ├─base::summary(lme)
   3.   └─lme4:::summary.merMod(lme)
   4.     ├─nlme::VarCorr(object)
   5.     └─lme4:::VarCorr.merMod(object)
   6.       ├─base::structure(...)
   7.       └─lme4::mkVarCorr(...)
   8.         └─base::lapply(...)
   9.           └─lme4 (local) FUN(X[[i]], ...)
  
  [ FAIL 20 | WARN 0 | SKIP 14 | PASS 7 ]
  Error: Test failures
  Execution halted