Running ‘testthat.R’ [10s/12s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > 
  > # Locally:
  > #library(devtools)
  > #load_all("../")
  > 
  > # With R CMD check:
  > library(morpheus)
  > 
  > test_check("morpheus")
  
  
  logit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
            [,1]       [,2]
  [1,] 0.9928814 0.04834334
  [2,] 0.1191072 0.99883078
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1262258 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]        [,2]
  [1,]  0.99986235 -0.05701482
  [2,] -0.01659151  0.99837333
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05864149 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4481140 0.9520807
  [2,] -0.8939764 0.3058469
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01377834 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4331529 0.9467065
  [2,] -0.9013204 0.3220974
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02095394 
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-jointDiag.R:46:5): 'jedi' and 'uwedge' joint-diagonalization methods return a correct matrix ──
  `x` is not strictly less than `expected`. Difference: 0.0912
  Backtrace:
      █
   1. └─morpheus:::.computeMuCheckDiag(...) test-jointDiag.R:46:4
   2.   └─testthat::expect_that(...) test-jointDiag.R:27:4
   3.     └─testthat:::condition(object)
   4.       └─testthat::expect_lt(x, expected)
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 225 ]
  Error: Test failures
  Execution halted