Running ‘tinytest.R’ [28s/37s]
Running the tests in ‘tests/tinytest.R’ failed.
Complete output:
  > 
  > if ( requireNamespace("tinytest", quietly=TRUE) ){
  +   tinytest::test_package("etwfe")
  + }
  
  test_baker.R..................    0 tests    
  test_baker.R..................    0 tests    
  test_baker.R..................    0 tests    
  test_baker.R..................    0 tests    
  test_baker.R..................    0 tests    
  test_baker.R..................    1 tests [0;31m1 fails[0m [0;34m18.6s[0m
  
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    The variables '.Dtreat:first.treat::2006:year::2004', '.Dtreat:first.treat::2006:year::2005' and eight others have been removed because of collinearity (see $collin.var).
  
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    0 tests    
  test_emfx.R...................    1 tests [0;31m1 fails[0m 
  test_emfx.R...................    2 tests [0;31m2 fails[0m 
  test_emfx.R...................    3 tests [0;31m3 fails[0m 
  test_emfx.R...................    4 tests [0;31m4 fails[0m 
  test_emfx.R...................    5 tests [0;31m5 fails[0m 
  test_emfx.R...................    6 tests [0;31m6 fails[0m 
  test_emfx.R...................    7 tests [0;31m7 fails[0m [0;34m16.0s[0m
  
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    0 tests    
  test_etwfe.R..................    1 tests [0;32mOK[0m 
  test_etwfe.R..................    2 tests [0;32mOK[0m 
  test_etwfe.R..................    3 tests [0;32mOK[0m 
  test_etwfe.R..................    3 tests [0;32mOK[0m 
  test_etwfe.R..................    4 tests [0;32mOK[0m 
  test_etwfe.R..................    4 tests [0;32mOK[0m 
  test_etwfe.R..................    5 tests [0;32mOK[0m 
  test_etwfe.R..................    6 tests [0;32mOK[0m The variables '.Dtreat:first.treat::2006:year::2004', '.Dtreat:first.treat::2006:year::2005' and eight others have been removed because of collinearity (see $collin.var).
  
  test_etwfe.R..................    6 tests [0;32mOK[0m 
  test_etwfe.R..................    7 tests [0;32mOK[0m [0;34m1.4s[0m
  ----- FAILED[data]: test_baker.R<92--92>
   call| expect_equal(bmod, bmod_known, tolerance = 1e-06)
   diff| Names: 3 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (18, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component "type": Lengths (18, 36) differ (string compare on first 18)
   diff| Component 2: Modes: character, numeric
   diff| Component 2: Lengths: 18, 36
   diff| Component 2: target is character, current is numeric
   diff| Component 3: Lengths (18, 36) differ (string compare on first 18)
   diff| Component 3: 18 string mismatches
   diff| Component 4: Modes: numeric, character
   diff| Component 4: Lengths: 18, 36
   diff| Component 4: target is numeric, current is character
   diff| Component "estimate": Numeric: lengths (18, 36) differ
   diff| Component "std.error": Numeric: lengths (18, 36) differ
   diff| Component "statistic": Numeric: lengths (18, 36) differ
   diff| Component "p.value": Numeric: lengths (18, 36) differ
   diff| Component "conf.low": Numeric: lengths (18, 36) differ
   diff| Component "conf.high": Numeric: lengths (18, 36) differ
  ----- FAILED[data]: test_emfx.R<152--152>
   call| expect_equal(summary(emfx(m3)), simple_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (1, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Modes: logical, numeric
   diff| Component 4: target is logical, current is numeric
   diff| Component 5: Mean relative difference: 1.246899
   diff| Component 6: Mean relative difference: 325.0241
   diff| Component 7: Mean relative difference: 1.000013
   diff| Component 8: Mean relative difference: 1469.258
   diff| Component 9: Mean relative difference: 0.652213
   diff| Component 10: Modes: numeric, logical
   diff| Component 10: target is numeric, current is logical
  ----- FAILED[data]: test_emfx.R<153--153>
   call| expect_equal(summary(emfx(m3, type = "simple")), simple_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (1, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Modes: logical, numeric
   diff| Component 4: target is logical, current is numeric
   diff| Component 5: Mean relative difference: 1.246899
   diff| Component 6: Mean relative difference: 325.0241
   diff| Component 7: Mean relative difference: 1.000013
   diff| Component 8: Mean relative difference: 1469.258
   diff| Component 9: Mean relative difference: 0.652213
   diff| Component 10: Modes: numeric, logical
   diff| Component 10: target is numeric, current is logical
  ----- FAILED[data]: test_emfx.R<154--154>
   call| expect_equal(summary(emfx(m3, type = "calendar")), calendar_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (4, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Mean relative difference: 1.000025
   diff| Component 5: Mean relative difference: 1.407912
   diff| Component 6: Mean relative difference: 123.7785
   diff| Component 7: Mean relative difference: 1.034204
   diff| Component 8: Mean relative difference: 2.050483
   diff| Component 9: Mean relative difference: 0.8885753
   diff| Component 10: Mean relative difference: 96956.61
  ----- FAILED[data]: test_emfx.R<155--155>
   call| expect_equal(summary(emfx(m3, type = "group")), group_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (3, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Mean relative difference: 1.000026
   diff| Component 5: Mean relative difference: 1.385007
   diff| Component 6: Mean relative difference: 126.828
   diff| Component 7: Mean relative difference: 1.035085
   diff| Component 8: Mean relative difference: 2.032312
   diff| Component 9: Mean relative difference: 0.8601392
   diff| Component 10: Mean relative difference: 88049.62
  ----- FAILED[data]: test_emfx.R<156--156>
   call| expect_equal(summary(emfx(m3, type = "event")), event_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (4, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Mean relative difference: 1.056328
   diff| Component 5: Mean relative difference: 1.277063
   diff| Component 6: Mean relative difference: 147.2396
   diff| Component 7: Mean relative difference: 1.00106
   diff| Component 8: Mean relative difference: 36.92359
   diff| Component 9: Mean relative difference: 0.7038512
   diff| Component 10: Mean relative difference: 39.84999
  ----- FAILED[data]: test_emfx.R<157--157>
   call| expect_equal(data.frame(emfx(m3, type = "event", post_only = FALSE)), 
   call| -->    event_pre_known)
   diff| Names: 5 string mismatches
   diff| Component 10: Mean relative difference: 1.067114
   diff| Component 12: Mean relative difference: 0.01033923
   diff| Component 13: Mean relative difference: 4.00269
  ----- FAILED[data]: test_emfx.R<158--158>
   call| expect_equal(summary(emfx(m3p, type = "event")), event_pois_known)
   diff| Names: 7 string mismatches
   diff| Attributes: < Names: 6 string mismatches >
   diff| Attributes: < Length mismatch: comparison on first 6 components >
   diff| Attributes: < Component 1: 1 string mismatch >
   diff| Attributes: < Component 2: Modes: character, call >
   diff| Attributes: < Component 2: names for current but not for target >
   diff| Attributes: < Component 2: target is character, current is call >
   diff| Attributes: < Component 3: Modes: numeric, character >
   diff| Attributes: < Component 3: target is numeric, current is character >
   diff| Attributes: < Component 4: Modes: character, numeric >
   diff| Attributes: < Component 4: target is character, current is numeric >
   diff| Attributes: < Component 5: Attributes: < target is NULL, current is list > >
   diff| Attributes: < Component 5: Numeric: lengths (4, 0) differ >
   diff| Attributes: < Component 6: Modes: character, numeric >
   diff| Attributes: < Component 6: names for target but not for current >
   diff| Attributes: < Component 6: Attributes: < names for current but not for target > >
   diff| Attributes: < Component 6: Attributes: < Length mismatch: comparison on first 0 components > >
   diff| Attributes: < Component 6: target is character, current is matrix >
   diff| Length mismatch: comparison on first 10 components
   diff| Component 4: Mean relative difference: 34.56502
   diff| Component 5: Mean relative difference: 1.520973
   diff| Component 6: Mean relative difference: 1.079158
   diff| Component 7: Mean relative difference: 1.120631
   diff| Component 8: Mean relative difference: 379.6534
   diff| Component 9: Mean relative difference: 1.026024
   diff| Component 10: Mean relative difference: 1.02394
  Error: 8 out of 15 tests failed
  Execution halted