Running 'testthat.R' [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.99963961 -0.1192855
  [2,] 0.02684498  0.9928600
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1264255 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]       [,2]
  [1,]  0.99802025 0.02577133
  [2,] -0.06289341 0.99966786
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.06487316 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4519671 0.9530603
  [2,] -0.8920346 0.3027806
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0178241 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4112434 0.9476152
  [2,] -0.9115256 0.3194141
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05306864 
  -- 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.0229 - 0.0326 == -0.00973
  
  == testthat results  ===========================================================
  [ OK: 309 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 1 ]
  1. Failure: naive computation provides the same result as vectorized computations (@test-optimParams.R#83) 
  
  Error: testthat unit tests failed
  Execution halted