Running 'testthat.R' [17s]
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.999967913 -0.06121321
  [2,] -0.008010786  0.99812471
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.0630885 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]       [,2]
  [1,] 0.99992617 0.00444234
  [2,] 0.01215133 0.99999013
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01222516 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4121846 0.9539485
  [2,] -0.9111003 0.2999705
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05170212 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4627631 0.9470690
  [2,] -0.8864820 0.3210302
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02349465 
  -- 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.114 - -0.107 == -0.00668
  
  == 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