Last updated on 2020-02-11 08:48:26 CET.
Flavor | Version | Tinstall | Tcheck | Ttotal | Status | Flags |
---|---|---|---|---|---|---|
r-devel-linux-x86_64-debian-clang | 0.1.0 | 433.54 | 61.96 | 495.50 | ERROR | |
r-devel-linux-x86_64-debian-gcc | 0.1.0 | 297.92 | 48.99 | 346.91 | ERROR | |
r-devel-linux-x86_64-fedora-clang | 0.1.0 | 755.61 | ERROR | |||
r-devel-linux-x86_64-fedora-gcc | 0.1.0 | 668.00 | ERROR | |||
r-devel-windows-ix86+x86_64 | 0.1.0 | 746.00 | 108.00 | 854.00 | ERROR | |
r-devel-windows-ix86+x86_64-gcc8 | 0.1.0 | 998.00 | 122.00 | 1120.00 | ERROR | |
r-patched-linux-x86_64 | 0.1.0 | 334.61 | 57.44 | 392.05 | ERROR | |
r-patched-solaris-x86 | 0.1.0 | 486.70 | ERROR | |||
r-release-linux-x86_64 | 0.1.0 | 326.73 | 57.39 | 384.12 | ERROR | |
r-release-windows-ix86+x86_64 | 0.1.0 | 923.00 | 108.00 | 1031.00 | ERROR | |
r-release-osx-x86_64 | 0.1.0 | NOTE | ||||
r-oldrel-windows-ix86+x86_64 | 0.1.0 | 677.00 | 107.00 | 784.00 | ERROR | |
r-oldrel-osx-x86_64 | 0.1.0 | NOTE |
clang-UBSAN gcc10 gcc10 gcc-UBSAN
Version: 0.1.0
Check: tests
Result: ERROR
Running 'testthat.R' [11s/12s]
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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavor: r-devel-linux-x86_64-debian-clang
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [8s/11s]
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
Flavor: r-devel-linux-x86_64-debian-gcc
Version: 0.1.0
Check: installed package size
Result: NOTE
installed size is 42.1Mb
sub-directories of 1Mb or more:
libs 41.4Mb
Flavors: r-devel-linux-x86_64-fedora-clang, r-devel-windows-ix86+x86_64, r-devel-windows-ix86+x86_64-gcc8, r-release-windows-ix86+x86_64, r-release-osx-x86_64, r-oldrel-windows-ix86+x86_64, r-oldrel-osx-x86_64
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [12s/16s]
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
Flavor: r-devel-linux-x86_64-fedora-clang
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/16s]
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
Flavor: r-devel-linux-x86_64-fedora-gcc
Version: 0.1.0
Check: running tests for arch ‘i386’
Result: ERROR
Running 'testthat.R' [7s]
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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64
Version: 0.1.0
Check: running tests for arch ‘x64’
Result: ERROR
Running 'testthat.R' [8s]
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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavors: r-devel-windows-ix86+x86_64, r-release-windows-ix86+x86_64
Version: 0.1.0
Check: running tests for arch ‘i386’
Result: ERROR
Running 'testthat.R' [9s]
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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavors: r-devel-windows-ix86+x86_64-gcc8, r-oldrel-windows-ix86+x86_64
Version: 0.1.0
Check: running tests for arch ‘x64’
Result: ERROR
Running 'testthat.R' [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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavor: r-devel-windows-ix86+x86_64-gcc8
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [9s/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
Flavors: r-patched-linux-x86_64, r-release-linux-x86_64
Version: 0.1.0
Check: tests
Result: ERROR
Running ‘testthat.R’ [13s/14s]
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
Flavor: r-patched-solaris-x86
Version: 0.1.0
Check: running tests for arch ‘x64’
Result: ERROR
Running 'testthat.R' [11s]
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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 3 doesn't exist.\ni 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.\ni Logical subscripts must match the size of the indexed input.\nx 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.\nx 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.\nx The location 3 doesn't exist.\ni 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.\nx The location 9 doesn't exist.\ni 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.\nx The locations 9 and 10 don't exist.\ni 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
Flavor: r-oldrel-windows-ix86+x86_64