Running ‘testthat.R’ [248s/312s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(clubSandwich)
  Registered S3 method overwritten by 'clubSandwich':
    method    from    
    bread.mlm sandwich
  > 
  > test_check("clubSandwich")
  [ FAIL 4 | WARN 32 | SKIP 28 | PASS 1411 ]
  
  ══ Skipped tests (28) ══════════════════════════════════════════════════════════
  • Need to understand target-unbiasedness for ivreg objects. (2):
    'test_AER_ivreg.R:141:3', 'test_ivreg_ivreg.R:141:3'
  • On CRAN (24): 'test_Wald.R:119:3', 'test_Wald.R:173:3',
    'test_geeglm.R:161:3', 'test_linear_contrast.R:136:3',
    'test_lme_3level.R:39:3', 'test_lme_3level.R:76:3',
    'test_lme_3level.R:116:3', 'test_lme_3level.R:127:3',
    'test_lme_3level.R:138:3', 'test_lme_3level.R:179:3', 'test_lme_MVML.R:4:1',
    'test_lmerMod.R:124:3', 'test_mlm.R:94:3',
    'test_plm-first-differences.R:92:3', 'test_plm-fixed-effects.R:146:3',
    'test_plm-unbalanced-fixed-effects.R:170:3', 'test_rma-ls.R:26:3',
    'test_rma-mv.R:101:3', 'test_rma-mv.R:220:3', 'test_rma-mv.R:321:3',
    'test_rma-uni.R:76:3', 'test_robu.R:173:3', 'test_robu.R:210:3',
    'test_robu.R:252:3'
  • empty test (1): 'test_estfun.R:50:1'
  • packageVersion("plm") > "2.6-1" is TRUE (1):
    'test_plm-first-differences.R:41:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test_lmerMod.R:166:3'): lmer agrees with lme ──────────────────────
  bread(lmer_fit)/bread(lme_fit) not equal to matrix(1, p, p).
  9/36 mismatches (average diff: 1.54)
  [1]  2.54 - 1 == 1.54
  [3]  2.54 - 1 == 1.54
  [4]  2.54 - 1 == 1.54
  [13] 2.54 - 1 == 1.54
  [15] 2.54 - 1 == 1.54
  [16] 2.54 - 1 == 1.54
  [19] 2.54 - 1 == 1.54
  [21] 2.54 - 1 == 1.54
  [22] 2.54 - 1 == 1.54
  ── Failure ('test_lmerMod.R:167:3'): lmer agrees with lme ──────────────────────
  targetVariance(lmer_fit) not equal to targetVariance(lme_fit).
  Component 1: Mean relative difference: 0.6081393
  Component 2: Mean relative difference: 0.6081393
  Component 3: Mean relative difference: 0.6081393
  Component 4: Mean relative difference: 0.6081393
  Component 5: Mean relative difference: 0.6081393
  Component 6: Mean relative difference: 0.6081393
  Component 7: Mean relative difference: 0.6081393
  Component 8: Mean relative difference: 0.6081393
  Component 9: Mean relative difference: 0.6081393
  ...
  ── Failure ('test_lmerMod.R:168:3'): lmer agrees with lme ──────────────────────
  weightMatrix(lmer_fit) not equal to weightMatrix(lme_fit).
  Component 1: Mean relative difference: 0.0009284284
  Component 2: Mean relative difference: 0.0009284284
  Component 3: Mean relative difference: 0.0009284284
  Component 4: Mean relative difference: 0.0009284284
  Component 5: Mean relative difference: 0.0009284284
  Component 6: Mean relative difference: 0.0009284284
  Component 7: Mean relative difference: 0.0009284284
  Component 8: Mean relative difference: 0.0009284284
  Component 9: Mean relative difference: 0.0009284284
  ...
  ── Failure ('test_lmerMod.R:182:3'): lmer agrees with lme ──────────────────────
  a$Fstat not equal to b$Fstat.
  88/280 mismatches (average diff: 0.354)
  [8]    31.5 -   30.6 ==  0.956
  [28] 1328.1 - 1327.8 ==  0.350
  [29] 1320.5 - 1320.1 ==  0.369
  [30] 1361.8 - 1361.7 ==  0.118
  [31] 1477.0 - 1477.2 == -0.265
  [32]   22.7 -   22.5 ==  0.179
  [36] 1331.3 - 1330.9 ==  0.351
  [37] 1323.6 - 1323.3 ==  0.369
  [38] 1365.0 - 1364.9 ==  0.118
  ...
  Backtrace:
      ▆
   1. └─clubSandwich:::compare_Waldtests(Wald_lmer, Wald_lme) at test_lmerMod.R:182:3
   2.   └─testthat::expect_equal(a$Fstat, b$Fstat, tolerance = tol)
  
  [ FAIL 4 | WARN 32 | SKIP 28 | PASS 1411 ]
  Error: Test failures
  Execution halted