Running ‘testthat.R’ [5s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(wiserow)
  > library(testthat)
  > 
  > # old reporter for CMD checks
  > options(testthat.default_reporter = "summary")
  > 
  > #' To test in a local machine:
  > #' Sys.setenv(NOT_CRAN = "true"); test_dir("tests/testthat/")
  > #' OR
  > #' devtools::test()
  > #'
  > testthat::test_check("wiserow")
  ── 1. Failure: row_sums can handle errors and edge cases appropriately.  ───────
  `row_sums(char_mat, output_mode = "integer")` threw an error with unexpected message.
  Expected match: "not support"
  Actual message: "c++ exception (unknown reason)"
  Backtrace:
    1. base::suppressWarnings(...)
    9. wiserow:::row_sums.matrix(char_mat, output_mode = "integer")
   10. wiserow:::row_arith.matrix(.data, operator = "+", ...)
  
  ── 2. Failure: row_sums can handle errors and edge cases appropriately.  ───────
  `row_sums(char_mat, output_mode = "integer", cols = -2L)` threw an error with unexpected message.
  Expected match: "not support"
  Actual message: "c++ exception (unknown reason)"
  Backtrace:
    1. base::suppressWarnings(...)
    9. wiserow:::row_sums.matrix(...)
   10. wiserow:::row_arith.matrix(.data, operator = "+", ...)
  
  ── 3. Failure: row_sums can handle errors and edge cases appropriately.  ───────
  `row_sums(char_mat, output_mode = "complex")` threw an error with unexpected message.
  Expected match: "not support"
  Actual message: "c++ exception (unknown reason)"
  Backtrace:
    1. base::suppressWarnings(...)
    9. wiserow:::row_sums.matrix(char_mat, output_mode = "complex")
   10. wiserow:::row_arith.matrix(.data, operator = "+", ...)
  
  ── 4. Failure: row_sums can handle errors and edge cases appropriately.  ───────
  `row_sums(df)` threw an error with unexpected message.
  Expected match: "not support"
  Actual message: "c++ exception (unknown reason)"
  Backtrace:
    1. base::suppressWarnings(expect_error(regexp = "not support", row_sums(df)))
    9. wiserow:::row_sums.data.frame(df)
   10. wiserow:::row_arith.data.frame(.data, operator = "+", ...)
  
  free(): invalid pointer