Running 'testthat.R' [18s]
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.99910517 -0.1106442
  [2,] 0.04229482  0.9938601
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1167841 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]       [,2]
  [1,] 0.99996583 -0.0331081
  [2,] 0.00826619  0.9994518
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.03365632 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4102868 0.9577483
  [2,] -0.9119566 0.2876076
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05445622 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4595643 0.9470021
  [2,] -0.8881445 0.3212274
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01863332 
  -- 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.169 - 0.022 == 0.147
  
  == 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