Running ‘testthat.R’ [3s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rtmpinv)
  > 
  > test_check("rtmpinv")
  Saving _problems/test-tmpinv-30.R
  Saving _problems/test-tmpinv-90.R
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-tmpinv.R:24:3'): tmpinv works for AP/TM on symmetric 10x10 matrix ──
  Error in `as.vector(x, mode)`: cannot coerce type 'object' to vector of type 'any'
  Backtrace:
       ▆
    1. └─rtmpinv::tmpinv(...) at test-tmpinv.R:24:3
    2.   ├─base::do.call(...)
    3.   └─rtmpinv (local) `<fn>`(...)
    4.     ├─base::do.call(...)
    5.     └─rclsp (local) `<fn>`(...)
    6.       ├─base::do.call(...)
    7.       └─rclsp (local) `<fn>`(...)
    8.         ├─base::do.call(...)
    9.         └─rclsp (local) `<fn>`(...)
   10.           ├─A_csc %*% z_cvx
   11.           └─A_csc %*% z_cvx
   12.             ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y)
   13.             ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y)
   14.             └─base::as.matrix.default(y)
   15.               └─base::array(...)
   16.                 └─base::as.vector(data)
  ── Error ('test-tmpinv.R:83:3'): tmpinv works for reduced AP/TM on 20x20 zero-diagonal matrix ──
  Error in `as.vector(x, mode)`: cannot coerce type 'object' to vector of type 'any'
  Backtrace:
       ▆
    1. └─rtmpinv::tmpinv(...) at test-tmpinv.R:83:3
    2.   ├─base::do.call(...)
    3.   └─rtmpinv (local) `<fn>`(...)
    4.     ├─base::do.call(...)
    5.     └─rclsp (local) `<fn>`(...)
    6.       ├─base::do.call(...)
    7.       └─rclsp (local) `<fn>`(...)
    8.         ├─base::do.call(...)
    9.         └─rclsp (local) `<fn>`(...)
   10.           ├─A_csc %*% z_cvx
   11.           └─A_csc %*% z_cvx
   12.             ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y)
   13.             ├─(if (length(dim(y)) == 2L) as.matrix else as.vector)(y)
   14.             └─base::as.matrix.default(y)
   15.               └─base::array(...)
   16.                 └─base::as.vector(data)
  
  [ FAIL 2 | WARN 0 | SKIP 0 | PASS 0 ]
  Error:
  ! Test failures.
  Execution halted