Running 'testthat.R' [10s/13s]
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.8987072 -0.1455924
  [2,] 0.4385492  0.9893447
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.539842 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]       [,2]
  [1,] 0.99904163 0.01850581
  [2,] 0.04377006 0.99982875
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04472843 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4374894 0.9318146
  [2,] -0.8992236 0.3629346
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.06357548 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4346296 0.9429687
  [2,] -0.9006093 0.3328814
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0223682 
  == 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.0398
  Backtrace:
      x
   1. \-testthat::expect_that(diff_norm, is_less_than(0.5)) test-computeMu.R:32:6
   2.   \-testthat:::condition(object)
   3.     \-testthat::expect_lt(x, expected)
  
  [ FAIL 1 | WARN 3 | SKIP 0 | PASS 225 ]
  Error: Test failures
  Execution halted