Running 'testthat.R' [20s]
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.9891359 -0.2225360
  [2,] -0.1470043  0.9749245
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.2476116 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
            [,1]        [,2]
  [1,] 0.9989457 0.007034799
  [2,] 0.0459077 0.999975255
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04696201 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4224152 0.9448251
  [2,] -0.9064025 0.3275753
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.03677372 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4447556 0.9518673
  [2,] -0.8956520 0.3065103
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01290151 
  -- 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.0714 - 0.0707 == 0.000686
  
  == 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