Running 'testthat.R' [34s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(OrthoPanels)
  > 
  > test_check("OrthoPanels")
  -- 1. Failure: data (@test-dropouts.R#29)  -------------------------------------
  `x` not equal to array(...).
  4/40 mismatches (average diff: NaN)
  [15] -1.479 -     NA == NA
  [23] -0.937 -     NA == NA
  [24]     NA - 1.4386 == NA
  [27]     NA - 0.0878 == NA
  
  -- 2. Failure: data (@test-dropouts.R#41)  -------------------------------------
  `y` not equal to matrix(...).
  4/40 mismatches (average diff: NaN)
  [15] -2.53 -    NA == NA
  [23]  3.01 -    NA == NA
  [24]    NA -  4.25 == NA
  [27]    NA - -2.23 == NA
  
  -- 3. Failure: default (@test-dropouts.R#56)  ----------------------------------
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.86952
  Component "samples": Component "sig2": Mean relative difference: 0.3570616
  Component "samples": Component "beta": Mean relative difference: 1.415145
  Component "fitted.values": Mean relative difference: 1.814877
  Component "residuals": Mean relative difference: 0.9083838
  Component "df.residual": Mean relative difference: 0.04
  Component "logLik": Mean relative difference: 0.9194503
  
  -- 4. Failure: late-arrivals (@test-dropouts.R#102)  ---------------------------
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.86952
  Component "samples": Component "sig2": Mean relative difference: 0.246818
  Component "samples": Component "beta": Mean relative difference: 1.047851
  Component "fitted.values": Mean relative difference: 1.580767
  Component "residuals": Mean relative difference: 0.8826319
  Component "logLik": Mean relative difference: 0.8912404
  
  -- 5. Failure: late-arrivals (@test-dropouts.R#145)  ---------------------------
  opm(y ~ x, d, n.samp = 10) not equal to `o`.
  Component "samples": Component "sig2": Mean relative difference: 0.235195
  Component "samples": Component "beta": Mean relative difference: 0.300333
  Component "fitted.values": Mean relative difference: 0.4092705
  Component "residuals": Mean relative difference: 0.3357929
  Component "df.residual": Mean relative difference: 0.04166667
  Component "logLik": Mean relative difference: 0.3502178
  
  -- 6. Failure: DIC (@test-dropouts.R#166)  -------------------------------------
  DIC(o) not equal to 15.158.
  1/1 mismatches
  [1] 84 - 15.2 == 68.9
  
  -- 7. Failure: default (@test-opm-multivar.R#54)  ------------------------------
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.2858594
  
  -- 8. Failure: named matrix (@test-opm-multivar.R#100)  ------------------------
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.2858594
  
  -- 9. Failure: formula (@test-opm-multivar.R#201)  -----------------------------
  opm(y ~ x1 + x2, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.2858594
  
  -- 10. Failure: formula (@test-opm-multivar.R#211)  ----------------------------
  opm(y ~ x1 + x2, d, index = 4:3, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.2858594
  
  -- 11. Failure: formula (@test-opm-multivar.R#219)  ----------------------------
  opm(y ~ x1 + x2, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.2858594
  
  -- 12. Failure: early dropouts (@test-opm-multivar.R#236)  ---------------------
  opm(xx, yy, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.749173
  Component "samples": Component "sig2": Mean relative difference: 0.8481314
  Component "samples": Component "beta": Mean relative difference: 0.5156464
  Component "fitted.values": Mean relative difference: 0.2435763
  Component "residuals": Mean relative difference: 1.260656
  Component "logLik": Mean relative difference: 0.1062547
  
  -- 13. Failure: confint (@test-opm-multivar.R#281)  ----------------------------
  confint(o) not equal to matrix(...).
  8/8 mismatches (average diff: 11.2)
  [1] -0.8134 -  -0.160 ==  -0.6538
  [2]  0.0634 -   0.112 ==  -0.0483
  [3] -3.3848 -  -2.962 ==  -0.4224
  [4] -1.6280 -  -1.545 ==  -0.0833
  [5]  0.7292 -   0.929 ==  -0.1998
  [6] 94.2363 - 178.186 == -83.9493
  [7]  2.8268 -   5.110 ==  -2.2830
  [8]  3.4564 -   5.457 ==  -2.0009
  
  -- 14. Failure: confint (@test-opm-multivar.R#290)  ----------------------------
  confint(o, 1:2, level = 0.68) not equal to matrix(...).
  4/4 mismatches (average diff: 0.975)
  [1] -0.704 - -0.0235 == -0.6807
  [2]  0.186 -  0.2157 == -0.0302
  [3]  0.296 -  0.7865 == -0.4903
  [4]  9.894 -  7.1965 ==  2.6971
  
  -- 15. Failure: coef (@test-opm-multivar.R#299)  -------------------------------
  coef(o) not equal to c(...).
  4/4 mismatches (average diff: 0.57)
  [1] -0.264 -  0.557 == -0.821
  [2]  0.579 -  0.874 == -0.296
  [3] -1.504 - -0.713 == -0.791
  [4] -1.029 - -0.656 == -0.373
  
  -- 16. Failure: print (@test-opm-multivar.R#311)  ------------------------------
  capture.output(o) not equal to c(...).
  5/12 mismatches
  x[7]: "                mean (SD)       med            95-CI"
  y[7]: "                 mean (SD)       med           95-CI"
  
  x[8]: "rho       -0.16840 (0.56)  -0.26400    (-0.81, 0.73)"
  y[8]: "rho        0.450900 (0.39)   0.55700   (-0.16, 0.93)"
  
  x[9]: "sig2     13.77329 (36.59)   0.57852  (0.063, 94.236)"
  y[9]: "sig2     24.422159 (71.18)   0.87405  (0.11, 178.19)"
  
  x[10]: "beta.x1   -0.95310 (2.04)  -1.50402      (-3.4, 2.8)"
  y[10]: "beta.x1   -0.077945 (2.55)  -0.71298     (-3.0, 5.1)"
  
  x[11]: "beta.x2   -0.35558 (1.78)  -1.02893      (-1.6, 3.5)"
  y[11]: "beta.x2    0.023554 (2.51)  -0.65587     (-1.5, 5.5)"
  
  -- 17. Failure: summary (@test-opm-multivar.R#328)  ----------------------------
  capture.output(summary(o)) not equal to c(...).
  5/9 mismatches
  x[5]: "            <--95CI   <--68CI        med    68CI-->    95CI-->"
  y[5]: "           <--95CI    <--68CI        med     68CI-->    95CI-->"
  
  x[6]: "rho       -0.813400   -0.7042   -0.26400    0.29620    0.72923"
  y[6]: "rho       -0.15962   -0.02352    0.55700    0.786520     0.9290"
  
  x[7]: "sig2       0.063382    0.1855    0.57852    9.89359   94.23628"
  y[7]: "sig2       0.11171    0.21566    0.87405    7.196468   178.1855"
  
  x[8]: "beta.x1   -3.384814   -1.9248   -1.50402    0.73088    2.82682"
  y[8]: "beta.x1   -2.96240   -1.42573   -0.71298    0.703472     5.1099"
  
  x[9]: "beta.x2   -1.628046   -1.2749   -1.02893   -0.18071    3.45640"
  y[9]: "beta.x2   -1.54479   -1.18338   -0.65587   -0.032576     5.4573"
  
  -- 18. Failure: DIC (@test-opm-multivar.R#342)  --------------------------------
  DIC(o) not equal to 24.83189.
  1/1 mismatches
  [1] 22.8 - 24.8 == -1.99
  
  -- 19. Failure: default (@test-opm.R#42)  --------------------------------------
  opm(x, y, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 20. Failure: formula (@test-opm.R#141)  -------------------------------------
  opm(y ~ x, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 21. Failure: formula (@test-opm.R#149)  -------------------------------------
  opm(y ~ x, d, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 22. Failure: formula (@test-opm.R#161)  -------------------------------------
  opm(y ~ x, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 23. Failure: formula (@test-opm.R#171)  -------------------------------------
  opm(y ~ x, d, index = 4:3, n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 24. Failure: formula (@test-opm.R#179)  -------------------------------------
  opm(y ~ x, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 25. Failure: formula (@test-opm.R#189)  -------------------------------------
  opm(y ~ x, d, index = c("i", "t"), n.samp = 10) not equal to `expected`.
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.545291
  
  -- 26. Failure: dummy vals (@test-opm.R#197)  ----------------------------------
  opm(x, y, n = 10, add = TRUE) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.222911
  Component "samples": Component "sig2": Mean relative difference: 10.76524
  Component "samples": Component "beta": Mean relative difference: 0.6452249
  Component "fitted.values": Mean relative difference: 0.09966698
  Component "residuals": Mean relative difference: 0.9995275
  Component "logLik": Mean relative difference: 5.282139
  
  -- 27. Failure: formula dummy vals (@test-opm.R#259)  --------------------------
  opm(y ~ x, d, n = 10, add = TRUE) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.222911
  Component "samples": Component "sig2": Mean relative difference: 10.76524
  Component "samples": Component "beta": Mean relative difference: 0.6452249
  Component "fitted.values": Mean relative difference: 0.09966698
  Component "residuals": Mean relative difference: 0.9995275
  Component "logLik": Mean relative difference: 5.282139
  
  -- 28. Failure: early dropouts (@test-opm.R#345)  ------------------------------
  opm(xx, yy, n = 10) not equal to structure(...).
  Component "samples": Component "rho": Mean relative difference: 1.8567
  Component "samples": Component "sig2": Mean relative difference: 0.3211086
  Component "samples": Component "beta": Mean relative difference: 0.0811292
  Component "fitted.values": Mean relative difference: 0.1827312
  Component "residuals": Mean relative difference: 0.3312852
  Component "logLik": Mean relative difference: 1.470295
  
  -- 29. Failure: confint (@test-opm.R#388)  -------------------------------------
  confint(o) not equal to matrix(...).
  6/6 mismatches (average diff: 1.34)
  [1] -0.813 - -0.160 == -0.654
  [2]  0.202 -  0.258 == -0.056
  [3] -0.280 - -0.405 ==  0.125
  [4]  0.729 -  0.945 == -0.216
  [5] 19.763 - 26.574 == -6.811
  [6]  1.819 -  1.982 == -0.163
  
  -- 30. Failure: confint (@test-opm.R#395)  -------------------------------------
  confint(o, 1:2, level = 0.68) not equal to matrix(...).
  4/4 mismatches (average diff: 1.15)
  [1] -0.704 - -0.0235 == -0.6807
  [2]  0.318 -  0.3922 == -0.0744
  [3]  0.296 -  0.8348 == -0.5386
  [4]  9.861 - 13.1608 == -3.2998
  
  -- 31. Failure: coef (@test-opm.R#404)  ----------------------------------------
  coef(o) not equal to c(rho = 0.651, sig2 = 0.898766398134737, beta = 1.08982465524029).
  3/3 mismatches (average diff: 0.325)
  [1] -0.264 - 0.651 == -0.9150
  [2]  0.943 - 0.899 ==  0.0442
  [3]  1.107 - 1.090 ==  0.0173
  
  -- 32. Failure: print (@test-opm.R#415)  ---------------------------------------
  capture.output(o) not equal to c(...).
  4/11 mismatches
  x[7]: "           mean (SD)       med          95-CI"
  y[7]: "           mean (SD)      med          95-CI"
  
  x[8]: "rho   -0.1684 (0.56)  -0.26400  (-0.81, 0.73)"
  y[8]: "rho    0.4579 (0.44)  0.65100  (-0.16, 0.95)"
  
  x[9]: "sig2   4.4325 (7.48)   0.94294    (0.2, 19.8)"
  y[9]: "sig2  5.7391 (10.14)  0.89877  (0.26, 26.57)"
  
  x[10]: "beta   1.0339 (0.66)   1.10709  (-0.28, 1.82)"
  y[10]: "beta   1.0596 (0.74)  1.08982    (-0.4, 2.0)"
  
  -- 33. Failure: summary (@test-opm.R#431)  -------------------------------------
  capture.output(summary(o)) not equal to c(...).
  4/8 mismatches
  x[5]: "        <--95CI    <--68CI        med   68CI-->    95CI-->"
  y[5]: "        <--95CI    <--68CI       med    68CI-->   95CI-->"
  
  x[6]: "rho    -0.81340   -0.70420   -0.26400    0.2962    0.72923"
  y[6]: "rho    -0.15962   -0.02352   0.65100    0.83476    0.9452"
  
  x[7]: "sig2    0.20162    0.31778    0.94294    9.8610   19.76348"
  y[7]: "sig2    0.25757    0.39221   0.89877   13.16080   26.5743"
  
  x[8]: "beta   -0.28021    0.76131    1.10709    1.5393    1.81929"
  y[8]: "beta   -0.40482    0.80448   1.08982    1.54018    1.9824"
  
  -- 34. Failure: DIC (@test-opm.R#444)  -----------------------------------------
  DIC(o) not equal to 16.80786.
  1/1 mismatches
  [1] 19.3 - 16.8 == 2.54
  
  -- 35. Failure: DIC (@test-opm.R#447)  -----------------------------------------
  DIC(opm(x, y, n = 10, add = TRUE)) not equal to -133.868546487072.
  1/1 mismatches
  [1] -20.3 - -134 == 114
  
  == testthat results  ===========================================================
  OK: 34 SKIPPED: 0 FAILED: 35
  1. Failure: data (@test-dropouts.R#29) 
  2. Failure: data (@test-dropouts.R#41) 
  3. Failure: default (@test-dropouts.R#56) 
  4. Failure: late-arrivals (@test-dropouts.R#102) 
  5. Failure: late-arrivals (@test-dropouts.R#145) 
  6. Failure: DIC (@test-dropouts.R#166) 
  7. Failure: default (@test-opm-multivar.R#54) 
  8. Failure: named matrix (@test-opm-multivar.R#100) 
  9. Failure: formula (@test-opm-multivar.R#201) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted