Running 'testthat.R' [13s]
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.9999997678 0.1308736
  [2,] 0.0006815362 0.9913991
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.1394745 
  
  
  probit :
  Reference normalized matrix:
       [,1] [,2]
  [1,]    1    0
  [2,]    0    1
  Estimated normalized matrix:
              [,1]       [,2]
  [1,]  0.99946928 -0.0226840
  [2,] -0.03257554  0.9997427
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.03310627 
  
  
  logit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4438789 0.9485399
  [2,] -0.8960868 0.3166576
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.004994311 
  
  
  probit :
  Reference normalized matrix:
             [,1]      [,2]
  [1,]  0.4472136 0.9486833
  [2,] -0.8944272 0.3162278
  Estimated normalized matrix:
             [,1]      [,2]
  [1,]  0.4754016 0.9420195
  [2,] -0.8797689 0.3355580
  Difference norm (Matrix norm ||.||_1, max. abs. sum on a column)
  0.04284637 
  [ FAIL 1 | WARN 0 | SKIP 1 | PASS 314 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • empty test (1): 'test-jointDiag.R:31: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