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.99604969 0.006501761
  [2,] 0.08879764 0.999978863
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.09274795 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
               [,1]       [,2]
  [1,]  0.999950113 0.07961072
  [2,] -0.009988611 0.99682603
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.08278469 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4095975 0.9395391
  [2,] -0.9122663 0.3424416
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05545518 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4355864 0.9546131
  [2,] -0.9001469 0.2978488
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02430876 
  -- 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.00331 - 0.00145 == 0.00186
  
  == 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