Running ‘testthat.R’ [34s/46s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(patrick)
  > library(bit64)
  
  Attaching package: 'bit64'
  
  The following object is masked from 'package:utils':
  
      hashtab
  
  The following objects are masked from 'package:base':
  
      %in%, :, array, as.factor, as.ordered, colSums, factor, intersect,
      is.double, is.element, match, matrix, order, rank, rowSums,
      setdiff, setequal, table, union
  
  > 
  > test_check("bit64")
  Saving _problems/test-matrix64-124.R
  Saving _problems/test-matrix64-124.R
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 4565 ]
  
  ══ Skipped tests (1) ═══════════════════════════════════════════════════════════
  • On CRAN (1): 'test-integer64.R:788:3'
  
  ══ Failed tests ════════════════════════════════════════════════════════════════
  ── Error ('test-matrix64.R:121:5'): array() wrapper works for integer ──────────
  <error/condition>
  Error in `array(x, dim = -1)`: the dims contain negative values
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, test_args)
    2. ├─testthat::expect_error(array(x, dim = -1), "negative length vectors are not allowed") at test-matrix64.R:121:5
    3. │ └─testthat:::expect_condition_matching_(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─bit64::array(x, dim = -1)
    9. ├─bit64:::array.default(x, dim = -1)
   10. │ ├─bit64:::withCallingHandlers_and_choose_call(...)
   11. │ │ └─base::eval(wch, envir = parent.frame())
   12. │ │   └─base::eval(wch, envir = parent.frame())
   13. │ ├─base::withCallingHandlers(base::array(...), error = `<fn>`, warning = `<fn>`)
   14. │ └─base::array(...)
   15. └─base::.handleSimpleError(...)
   16.   └─bit64 (local) h(simpleError(msg, call))
  ── Error ('test-matrix64.R:121:5'): array() wrapper works for integer64 ────────
  <error/condition>
  Error in `array(x, dim = -1)`: the dims contain negative values
  Backtrace:
       ▆
    1. ├─rlang::eval_tidy(code, test_args)
    2. ├─testthat::expect_error(array(x, dim = -1), "negative length vectors are not allowed") at test-matrix64.R:121:5
    3. │ └─testthat:::expect_condition_matching_(...)
    4. │   └─testthat:::quasi_capture(...)
    5. │     ├─testthat (local) .capture(...)
    6. │     │ └─base::withCallingHandlers(...)
    7. │     └─rlang::eval_bare(quo_get_expr(.quo), quo_get_env(.quo))
    8. ├─bit64::array(x, dim = -1)
    9. ├─bit64:::array.integer64(x, dim = -1)
   10. │ ├─bit64:::withCallingHandlers_and_choose_call(...)
   11. │ │ └─base::eval(wch, envir = parent.frame())
   12. │ │   └─base::eval(wch, envir = parent.frame())
   13. │ ├─base::withCallingHandlers(...)
   14. │ └─base::array(data = data, ...)
   15. └─base::.handleSimpleError(...)
   16.   └─bit64 (local) h(simpleError(msg, call))
  
  [ FAIL 2 | WARN 0 | SKIP 1 | PASS 4565 ]
  Error:
  ! Test failures.
  Execution halted