Running ‘testthat.R’ [12s/15s]
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.8350589 -0.2296236
  [2,] -0.5501606  0.9732795
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.7151017 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]        [,2]
  [1,]  0.99911190 0.006137439
  [2,] -0.04213572 0.999981166
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04302382 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4333633 0.9506559
  [2,] -0.9012193 0.3102473
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02064235 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4484163 0.9439572
  [2,] -0.8938248 0.3300679
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01856621 
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 225 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure (test-computeMu.R:32:7): on input of sufficient size, beta/||beta|| is estimated accurately enough ──
  `x` is not strictly less than `expected`. Difference: 0.215
  Backtrace:
      ▆
   1. └─testthat::expect_that(diff_norm, is_less_than(0.5)) at test-computeMu.R:32:6
   2.   └─testthat condition(object)
   3.     └─testthat::expect_lt(x, expected)
  
  [ FAIL 1 | WARN 2 | SKIP 0 | PASS 225 ]
  Error: Test failures
  Execution halted