Running 'testthat.R' [12s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(morpheus)
  > 
  > test_check("morpheus")
  
  
  logit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]       [,2]
  [1,]  0.99999118 0.08835186
  [2,] -0.00420084 0.99608933
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.09226253 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]         [,2]
  [1,]  0.99529810 -0.004399902
  [2,] -0.09685917  0.999990320
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1015611 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4793577 0.9359672
  [2,] -0.8776196 0.3520871
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04895163 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4601867 0.9437099
  [2,] -0.8878222 0.3307742
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01957812 
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 314 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test-jointDiag.R:31:1'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Failure ('test-optimParams.R:83:9'): naive computation provides the same result as vectorized computations ──
  op$grad_f(x)[var] (`actual`) not equal to ((op$f(x + dir_h) - op$f(x))/h)[1] (`expected`).
  
    `actual`: -0.0
  `expected`: -0.7
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 314 ]
  Error: Test failures
  Execution halted