Running ‘testthat.R’ [69s/79s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > pkg_name <- "mmrm"
  > library(pkg_name, character.only = TRUE)
  > testthat::test_check(pkg_name)
  -- Model Registration -------------------------------------------- mmrm 0.3.7 --
  v mmrm::mmrm()
  [ FAIL 8 | WARN 0 | SKIP 42 | PASS 1769 ]
  
  ══ Skipped tests (42) ══════════════════════════════════════════════════════════
  • On CRAN (42): 'test-between-within.R:29:3', 'test-empirical.R:6:3',
    'test-empirical.R:12:3', 'test-empirical.R:18:3', 'test-fit.R:214:3',
    'test-fit.R:265:3', 'test-fit.R:361:3', 'test-kenwardroger.R:4:3',
    'test-kenwardroger.R:9:3', 'test-kenwardroger.R:14:3',
    'test-kenwardroger.R:19:3', 'test-kenwardroger.R:24:3',
    'test-kenwardroger.R:29:3', 'test-kenwardroger.R:34:3',
    'test-kenwardroger.R:39:3', 'test-kenwardroger.R:44:3',
    'test-kenwardroger.R:49:3', 'test-kenwardroger.R:54:3',
    'test-kenwardroger.R:59:3', 'test-kenwardroger.R:64:3',
    'test-kenwardroger.R:69:3', 'test-kenwardroger.R:74:3',
    'test-kenwardroger.R:79:3', 'test-kenwardroger.R:84:3',
    'test-kenwardroger.R:89:3', 'test-kenwardroger.R:98:3',
    'test-kenwardroger.R:107:3', 'test-kenwardroger.R:348:3',
    'test-kenwardroger.R:356:3', 'test-kenwardroger.R:367:3',
    'test-kenwardroger.R:377:3', 'test-kenwardroger.R:389:3',
    'test-mmrm-methods.R:66:3', 'test-mmrm-methods.R:79:3',
    'test-mmrm-methods.R:85:3', 'test-mmrm-methods.R:91:3',
    'test-mmrm-methods.R:97:3', 'test-mmrm-methods.R:104:3',
    'test-testing.R:69:3', 'test-testing.R:84:3', 'test-tmb-methods.R:711:3',
    'test-tmb-methods.R:718:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-between-within.R:166:3'): h_df_md_bw works as expected for rank deficient model ──
  `result` (`actual`) not identical to `expected` (`expected`).
  
    `actual$f_stat`: 36.91
  `expected$f_stat`: 36.90
  
    `actual$p_val`: 0.0000000000000273
  `expected$p_val`: 0.0000000000000275
  ── Failure ('test-emmeans.R:134:3'): emmeans gives values close to what is expected ──
  result_df$SE (`actual`) not equal to expected_df$SE (`expected`).
  
    `actual`: 0.7554 0.7626 0.6117 0.6024 0.4618 0.5086 1.1888 1.1879
  `expected`: 0.7554 0.7626 0.6117 0.6023 0.4617 0.5086 1.1886 1.1877
  ── Failure ('test-satterthwaite.R:144:3'): h_df_md_sat works as expected ───────
  round(result$denom_df) (`actual`) not identical to 166 (`expected`).
  
    `actual`: 165
  `expected`: 166
  ── Failure ('test-satterthwaite.R:165:3'): h_df_md_sat works as expected for rank deficient model ──
  `result` (`actual`) not identical to `expected` (`expected`).
  
    `actual$denom_df`: 165.56
  `expected$denom_df`: 165.49
  
    `actual$f_stat`: 36.91
  `expected$f_stat`: 36.90
  
    `actual$p_val`: 0.0000000000000554
  `expected$p_val`: 0.0000000000000559
  ── Failure ('test-tmb-methods.R:732:3'): residuals works as expected ───────────
  head(result_pearson, 5) (`actual`) not equal to c(-0.23957, -3.23296, -0.8074, -1.09871, 0.30455) (`expected`).
  
    `actual`: -0.2395 -3.2325 -0.8073 -1.0986 0.3045
  `expected`: -0.2396 -3.2330 -0.8074 -1.0987 0.3045
  ── Failure ('test-tmb-methods.R:736:3'): residuals works as expected ───────────
  head(result_norm, 5) (`actual`) not equal to c(-0.23957, -3.23322, -0.8074, -0.99548, 0.43232) (`expected`).
  
    `actual`: -0.2395 -3.2329 -0.8073 -0.9953 0.4327
  `expected`: -0.2396 -3.2332 -0.8074 -0.9955 0.4323
  ── Failure ('test-tmb-methods.R:788:3'): pearson residuals helper function works as expected ──
  tail(result_pearson, 5) (`actual`) not equal to c(2.22057, 1.7905, 0.53322, 0.87243, 0.70477) (`expected`).
  
    `actual`: 2.2204 1.7902 0.5331 0.8723 0.7046
  `expected`: 2.2206 1.7905 0.5332 0.8724 0.7048
  ── Failure ('test-tmb-methods.R:795:3'): normalized residuals helper function works as expected ──
  tail(result_norm, 5) (`actual`) not equal to c(1.99092, 1.49689, 0.53322, 0.71055, 0.56152) (`expected`).
  
    `actual`: 1.9908 1.4958 0.5331 0.7104 0.5611
  `expected`: 1.9909 1.4969 0.5332 0.7106 0.5615
  
  [ FAIL 8 | WARN 0 | SKIP 42 | PASS 1769 ]
  Error: Test failures
  Execution halted