Running 'additional.R' [12s]
  Running 'testthat.R' [53s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > pkg_name <- "mmrm"
  > library(pkg_name, character.only = TRUE)
  > testthat::test_check(pkg_name)
  In AVISIT there are dropped visits: VIS4.
   Additional attributes including contrasts are lost.
  To avoid this behavior, make sure use `drop_visit_levels = FALSE`.
  Welcome to emmeans.
  Caution: You lose important information if you filter this package's results.
  See '? untidy'
  Saving _problems/test-empirical-486.R
  Saving _problems/test-empirical-520.R
  Saving _problems/test-empirical-554.R
  Saving _problems/test-empirical-588.R
  Saving _problems/test-empirical-622.R
  Saving _problems/test-empirical-656.R
  Loading required package: carData
  -- Model Registration ------------------------------------------- mmrm 0.3.17 --
  v mmrm::mmrm()
  [ FAIL 6 | WARN 0 | SKIP 51 | PASS 2050 ]
  
  ══ Skipped tests (51) ══════════════════════════════════════════════════════════
  • On CRAN (50): 'test-between-within.R:23:1', 'test-emmeans.R:115:1',
    'test-empirical.R:3:1', 'test-empirical.R:15:1', 'test-empirical.R:27:1',
    'test-fit.R:282:3', 'test-fit.R:412:3', 'test-fit.R:559:1',
    'test-interop-car.R:214:1', 'test-interop-car.R:237:1',
    'test-interop-car.R:304:1', 'test-kenwardroger.R:2:1',
    'test-kenwardroger.R:12:1', 'test-kenwardroger.R:22:1',
    'test-kenwardroger.R:32:1', 'test-kenwardroger.R:42:1',
    'test-kenwardroger.R:52:1', 'test-kenwardroger.R:62:1',
    'test-kenwardroger.R:72:1', 'test-kenwardroger.R:82:1',
    'test-kenwardroger.R:92:1', 'test-kenwardroger.R:102:1',
    'test-kenwardroger.R:112:1', 'test-kenwardroger.R:122:1',
    'test-kenwardroger.R:132:1', 'test-kenwardroger.R:142:1',
    'test-kenwardroger.R:152:1', 'test-kenwardroger.R:162:1',
    'test-kenwardroger.R:172:1', 'test-kenwardroger.R:182:1',
    'test-kenwardroger.R:192:1', 'test-kenwardroger.R:490:1',
    'test-kenwardroger.R:498:1', 'test-kenwardroger.R:512:1',
    'test-kenwardroger.R:530:1', 'test-kenwardroger.R:542:1',
    'test-mmrm-methods.R:78:1', 'test-mmrm-methods.R:94:1',
    'test-mmrm-methods.R:100:1', 'test-mmrm-methods.R:106:1',
    'test-mmrm-methods.R:112:1', 'test-mmrm-methods.R:119:1',
    'test-testing.R:78:1', 'test-testing.R:92:1', 'test-tmb-methods.R:142:1',
    'test-tmb-methods.R:179:1', 'test-tmb-methods.R:351:1',
    'test-tmb-methods.R:913:1', 'test-tmb-methods.R:1081:1',
    'test-tmb-methods.R:1088:1'
  • empty test (1):
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-empirical.R:486:3'): Empirical works as expected for ar1 ───────
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR0") at test-empirical.R:486:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR0")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  ── Error ('test-empirical.R:520:3'): Empirical works as expected for weighted ar1 ──
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR0") at test-empirical.R:520:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR0")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  ── Error ('test-empirical.R:554:3'): Jackknife works as expected for ar1 ───────
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR3") at test-empirical.R:554:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR3")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  ── Error ('test-empirical.R:588:3'): Jackknife works as expected for weighted ar1 ──
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR3") at test-empirical.R:588:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR3")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  ── Error ('test-empirical.R:622:3'): Bias-Reduced works as expected for ar1 ────
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR2") at test-empirical.R:622:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR2")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  ── Error ('test-empirical.R:656:3'): Bias-Reduced works as expected for weighted ar1 ──
  Error in `as.data.frame.default(data, optional = TRUE)`: cannot coerce class 'c("objectNotFoundError", "error", "condition")' to a data.frame
  Backtrace:
       ▆
    1. ├─clubSandwich::vcovCR(fit_gls, type = "CR2") at test-empirical.R:656:3
    2. └─clubSandwich:::vcovCR.gls(fit_gls, type = "CR2")
    3.   └─clubSandwich:::vcov_CR(...)
    4.     ├─clubSandwich:::model_matrix(obj)
    5.     └─clubSandwich:::model_matrix.gls(obj)
    6.       ├─stats::model.matrix(formula(obj), data = dat)
    7.       └─stats::model.matrix.default(formula(obj), data = dat)
    8.         ├─stats::terms(object, data = data)
    9.         └─stats::terms.formula(object, data = data)
   10.           ├─base::as.data.frame(data, optional = TRUE)
   11.           └─base::as.data.frame.default(data, optional = TRUE)
  
  [ FAIL 6 | WARN 0 | SKIP 51 | PASS 2050 ]
  Error:
  ! Test failures.
  Execution halted