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.99866505 0.2163845
  [2,] -0.05165376 0.9763082
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.2400763 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
               [,1]       [,2]
  [1,]  0.999969160 0.04350445
  [2,] -0.007853592 0.99905323
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04445121 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4710361 0.9512484
  [2,] -0.8821140 0.3084258
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.03613571 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4643252 0.9379243
  [2,] -0.8856648 0.3468400
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04137122 
  -- 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.0349 - -0.00917 == 0.0441
  
  == 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