Running ‘testthat.R’ [10s/10s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(rray)
  > 
  > test_check("rray")
  ── 1. Failure: can't index beyond vector in extract (@test-extract.R#67)  ──────
  `rray_extract(x, 3)` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't subset elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(rray_extract(x, 3), "length 2")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 2. Failure: can't index beyond vector in extract (@test-extract.R#68)  ──────
  `rray_extract(x, 1:3)` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't subset elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(rray_extract(x, 1:3), "length 2")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 3. Failure: can extract with a logical (@test-extract.R#79)  ────────────────
  `rray_extract(x, c(TRUE, TRUE, TRUE))` threw an error with unexpected message.
  Expected match: "must have length 1 or"
  Actual message: "Must subset elements with a valid subscript vector.\nℹ Logical subscripts must match the size of the indexed input.\n✖ The input has size 2 but the subscript has size 3."
  Backtrace:
    1. testthat::expect_error(...)
   10. vctrs:::stop_indicator_size(...)
  
  ── 4. Failure: extract with character fails gracefully (@test-extract.R#163)  ──
  `rray_extract(x, "r3")` threw an error with unexpected message.
  Expected match: "non-existing"
  Actual message: "Can't subset elements that don't exist.\n✖ The element `r3` doesn't exist."
  Backtrace:
    1. testthat::expect_error(rray_extract(x, "r3"), "non-existing")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 5. Failure: can use a negative extract (@test-extract.R#177)  ───────────────
  `rray_extract(x, -3)` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't negate elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(rray_extract(x, -3), "length 2")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 6. Failure: can't index beyond vector in subset (@test-subset.R#76)  ────────
  `rray_subset(x, 3)` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't subset elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(rray_subset(x, 3), "length 2")
    9. vctrs:::stop_subscript_oob(...)
   10. vctrs:::stop_subscript(...)
  
  ── 7. Failure: can't index beyond vector in subset (@test-subset.R#77)  ────────
  `rray_subset(x, 1:3)` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't subset elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(rray_subset(x, 1:3), "length 2")
    9. vctrs:::stop_subscript_oob(...)
   10. vctrs:::stop_subscript(...)
  
  ── 8. Failure: can subset with a logical (@test-subset.R#88)  ──────────────────
  `rray_subset(x, c(TRUE, TRUE, TRUE))` threw an error with unexpected message.
  Expected match: "must have length 1 or"
  Actual message: "Must subset elements with a valid subscript vector.\nℹ Logical subscripts must match the size of the indexed input.\n✖ The input has size 2 but the subscript has size 3."
  Backtrace:
   1. testthat::expect_error(rray_subset(x, c(TRUE, TRUE, TRUE)), "must have length 1 or")
   9. vctrs:::stop_indicator_size(...)
  
  ── 9. Failure: subset with character fails gracefully (@test-subset.R#172)  ────
  `rray_subset(x, "r3")` threw an error with unexpected message.
  Expected match: "non-existing"
  Actual message: "Can't subset elements that don't exist.\n✖ The element `r3` doesn't exist."
  Backtrace:
    1. testthat::expect_error(rray_subset(x, "r3"), "non-existing")
    9. vctrs:::stop_subscript_oob(...)
   10. vctrs:::stop_subscript(...)
  
  ── 10. Failure: can use a negative subset (@test-subset.R#185)  ────────────────
  `x[-3]` threw an error with unexpected message.
  Expected match: "length 2"
  Actual message: "Can't negate elements that don't exist.\n✖ The location 3 doesn't exist.\nℹ There are only 2 elements."
  Backtrace:
    1. testthat::expect_error(x[-3], "length 2")
   11. vctrs:::stop_subscript_oob(...)
   12. vctrs:::stop_subscript(...)
  
  ── 11. Failure: can't index beyond vector in a yank (@test-yank.R#17)  ─────────
  `rray_yank(x, 9)` threw an error with unexpected message.
  Expected match: "length 8"
  Actual message: "Can't subset elements that don't exist.\n✖ The location 9 doesn't exist.\nℹ There are only 8 elements."
  Backtrace:
    1. testthat::expect_error(rray_yank(x, 9), "length 8")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 12. Failure: can't index beyond vector in a yank (@test-yank.R#18)  ─────────
  `rray_yank(x, 8:10)` threw an error with unexpected message.
  Expected match: "length 8"
  Actual message: "Can't subset elements that don't exist.\n✖ The locations 9 and 10 don't exist.\nℹ There are only 8 elements."
  Backtrace:
    1. testthat::expect_error(rray_yank(x, 8:10), "length 8")
   10. vctrs:::stop_subscript_oob(...)
   11. vctrs:::stop_subscript(...)
  
  ── 13. Failure: shaped logicals with non-identical shape fail with yank (@test-y
  `rray_yank(x, idx)` threw an error with unexpected message.
  Expected match: "size 8"
  Actual message: "`i` must have one dimension, not 2."
  Backtrace:
   1. testthat::expect_error(rray_yank(x, idx), "size 8")
   6. rray::rray_yank(x, idx)
   7. rray:::rray_yank_impl(x, maybe_missing(i))
   8. rray:::as_yank_indexer(i, x)
   9. vctrs::vec_as_index(i, rray_elems(x))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 1622 | SKIPPED: 0 | WARNINGS: 12 | FAILED: 13 ]
  1. Failure: can't index beyond vector in extract (@test-extract.R#67) 
  2. Failure: can't index beyond vector in extract (@test-extract.R#68) 
  3. Failure: can extract with a logical (@test-extract.R#79) 
  4. Failure: extract with character fails gracefully (@test-extract.R#163) 
  5. Failure: can use a negative extract (@test-extract.R#177) 
  6. Failure: can't index beyond vector in subset (@test-subset.R#76) 
  7. Failure: can't index beyond vector in subset (@test-subset.R#77) 
  8. Failure: can subset with a logical (@test-subset.R#88) 
  9. Failure: subset with character fails gracefully (@test-subset.R#172) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted