Running ‘testthat.R’ [17s/19s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(morpheus)
  > 
  > test_check("morpheus")
  
  
  logit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]       [,2]
  [1,]  0.9939195 0.03503871
  [2,] -0.1101091 0.99938596
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1161896 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
             [,1]        [,2]
  [1,] 0.99987908 0.002294679
  [2,] 0.01555087 0.999997367
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01567179 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4030293 0.9448697
  [2,] -0.9151871 0.3274465
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.06494419 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4400443 0.9516573
  [2,] -0.8979761 0.3071617
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.01204014 
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 314 ]
  
  ══ Skipped tests ═══════════════════════════════════════════════════════════════
  • empty test (1)
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-optimParams.R:102:5'): W computed in C and in R are the same ───
  Error in `eS$vectors %*% diag(sqrt(pmax(ev, 0)), p) %*% t(X)`: non-conformable arguments
  Backtrace:
      ▆
   1. └─morpheus::generateSampleIO(n, theta$p, theta$beta, theta$b, link) at test-optimParams.R:102:4
   2.   └─MASS::mvrnorm(classes[i], zero_mean, id_sigma)
  
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 314 ]
  Error: Test failures
  Execution halted