Running 'testthat.R' [17s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(sparsebnUtils)
  > 
  > test_check("sparsebnUtils")
  == Skipped tests ===============================================================
  * empty test (1)
  
  == Failed tests ================================================================
  -- Error (test-as.R:80:5): Conversion between edgeList <-> Matrix works --------
  Error: no method or default for coercing "ddiMatrix" to "dgTMatrix"
  Backtrace:
       x
    1. +-testthat::expect_equivalent(adjMat0, as(as.edgeList(Mat0), "Matrix")) test-as.R:80:4
    2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
    3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
    4. +-methods::as(as.edgeList(Mat0), "Matrix")
    5. | \-methods:::.class1(object)
    6. \-sparsebnUtils::as.edgeList(Mat0)
    7.   +-sparsebnUtils::edgeList(x)
    8.   \-sparsebnUtils:::edgeList.Matrix(x)
    9.     \-sparsebnUtils:::matrix_to_edgeList(x)
   10.       +-sparsebnUtils::edgeList(as.sparse(x))
   11.       \-sparsebnUtils::as.sparse(x)
   12.         +-sparsebnUtils::sparse(x, index = "R", ...)
   13.         \-sparsebnUtils:::sparse.Matrix(x, index = "R", ...)
   14.           \-sparsebnUtils:::Matrix_to_sparse(x, index = "R", ...)
   15.             \-methods::as(x, "dgTMatrix")
  -- Error (test-as.R:90:5): Conversion between sparse <-> Matrix works ----------
  Error: no method or default for coercing "ddiMatrix" to "dgTMatrix"
  Backtrace:
      x
   1. +-testthat::expect_equivalent(sp0, as.sparse(as(sp0, "Matrix"))) test-as.R:90:4
   2. | \-testthat::quasi_label(enquo(expected), expected.label, arg = "expected")
   3. |   \-rlang::eval_bare(expr, quo_get_env(quo))
   4. \-sparsebnUtils::as.sparse(as(sp0, "Matrix"))
   5.   +-sparsebnUtils::sparse(x, index = "R", ...)
   6.   \-sparsebnUtils:::sparse.Matrix(x, index = "R", ...)
   7.     \-sparsebnUtils:::Matrix_to_sparse(x, index = "R", ...)
   8.       \-methods::as(x, "dgTMatrix")
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 384 ]
  Error: Test failures
  Execution halted