Running 'testthat.R' [16s]
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.99993675 0.1181220
  [2,] -0.01124708 0.9929991
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1251229 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
               [,1]        [,2]
  [1,]  0.999998263 -0.03387368
  [2,] -0.001863717  0.99942612
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.03444756 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4274632 0.9517514
  [2,] -0.9040327 0.3068702
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02935595 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4148534 0.9450305
  [2,] -0.9098883 0.3269822
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04782131 
  -- 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.0143 - -0.0156 == 0.00135
  
  == testthat results  ===========================================================
  OK: 311 SKIPPED: 0 FAILED: 1
  1. Failure: naive computation provides the same result as vectorized computations (@test-optimParams.R#83) 
  
  Error: testthat unit tests failed
  Execution halted