Running ‘testthat.R’ [7s/10s]
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.99917556 0.08138488
  [2,] 0.04059812 0.99668275
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.08470213 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]       [,2]
  [1,]  0.99993382 0.04841062
  [2,] -0.01150455 0.99882752
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0495831 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4492448 0.9478823
  [2,] -0.8934087 0.3186208
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.00319409 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4640528 0.9476525
  [2,] -0.8858076 0.3193035
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0254588 
  ══ 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.379
  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