Running 'testthat.R' [14s]
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.99926579 0.04238044
  [2,] 0.03831294 0.99910155
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0432789 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
               [,1]         [,2]
  [1,]  0.999998982 -0.003695291
  [2,] -0.001427171  0.999993172
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.003702119 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4786388 0.9344998
  [2,] -0.8780119 0.3559637
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0539195 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4594990 0.9519614
  [2,] -0.8881783 0.3062179
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01853438 
  -- 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.0797 - -0.0743 == -0.00545
  
  -- 2. 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.0398 - -0.0385 == -0.00131
  
  == testthat results  ===========================================================
  [ OK: 308 | SKIPPED: 0 | WARNINGS: 2 | FAILED: 2 ]
  1. Failure: naive computation provides the same result as vectorized computations (@test-optimParams.R#83) 
  2. Failure: naive computation provides the same result as vectorized computations (@test-optimParams.R#83) 
  
  Error: testthat unit tests failed
  Execution halted