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.99554052 -0.1750703
  [2,] -0.09433495  0.9845559
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1905144 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]        [,2]
  [1,] 0.99956443 0.003444938
  [2,] 0.02951196 0.999994066
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.02994753 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4511279 0.9484068
  [2,] -0.8924593 0.3170560
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.005882198 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4400304 0.9509662
  [2,] -0.8979829 0.3092949
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01073881 
  -- 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.00104 - 0.00722 == -0.00618
  
  == 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