Running ‘testthat.R’ [14s/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.99661874 -0.05392483
  [2,] -0.08216499  0.99854500
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.08554625 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]        [,2]
  [1,]  0.99974258 -0.07201408
  [2,] -0.02268865  0.99740362
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.07461046 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.5027275 0.9357119
  [2,] -0.8644449 0.3527652
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.08549622 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4114332 0.9560619
  [2,] -0.9114399 0.2931647
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.05279311 
  ── 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.0351 - 0.0356 == -0.000512
  
  ══ 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