Running 'testthat.R' [21s]
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.99948133 -0.2177246
  [2,] 0.03220372  0.9760102
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.2417143 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]       [,2]
  [1,]  0.99970160 0.07614475
  [2,] -0.02442758 0.99709677
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.07904798 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.3892741 0.9516323
  [2,] -0.9211220 0.3072392
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.08463433 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
            [,1]      [,2]
  [1,]  0.411847 0.9524165
  [2,] -0.911253 0.3047996
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05219248 
  -- 1. Failure: naive computation provides the same result as vectorized computat
  op$grad_f(x)[var] not equal to (op$f(x + dir_h) - op$f(x))/h.
  1/1 mismatches
  [1] -0.00994 - -0.00242 == -0.00752
  
  == testthat results  ===========================================================
  [ OK: 309 | SKIPPED: 0 | WARNINGS: 1 | FAILED: 1 ]
  1. Failure: naive computation provides the same result as vectorized computations (@test-optimParams.R#83) 
  
  Error: testthat unit tests failed
  Execution halted