* using log directory ‘/data/gannet/ripley/R/packages/tests-gcc10/rray.Rcheck’ * using R Under development (unstable) (2020-02-05 r77773) * using platform: x86_64-pc-linux-gnu (64-bit) * using session charset: UTF-8 * using option ‘--no-stop-on-test-error’ * checking for file ‘rray/DESCRIPTION’ ... OK * this is package ‘rray’ version ‘0.1.0’ * package encoding: UTF-8 * checking package namespace information ... OK * checking package dependencies ... OK * checking if this is a source package ... OK * checking if there is a namespace ... OK * checking for executable files ... OK * checking for hidden files and directories ... OK * checking for portable file names ... OK * checking for sufficient/correct file permissions ... OK * checking whether package ‘rray’ can be installed ... [651s/221s] WARNING Found the following significant warnings: /data/gannet/ripley/R/test-4.0/xtensor/include/xtensor/xstorage.hpp:1162:13: warning: array subscript 1 is outside array bounds of 'std::size_t [1]' {aka 'long unsigned int [1]'} [-Warray-bounds] See ‘/data/gannet/ripley/R/packages/tests-gcc10/rray.Rcheck/00install.out’ for details. * checking package directory ... OK * checking ‘build’ directory ... OK * checking DESCRIPTION meta-information ... OK * checking top-level files ... OK * checking for left-over files ... OK * checking index information ... OK * checking package subdirectories ... OK * checking R files for non-ASCII characters ... OK * checking R files for syntax errors ... OK * checking whether the package can be loaded ... OK * checking whether the package can be loaded with stated dependencies ... OK * checking whether the package can be unloaded cleanly ... OK * checking whether the namespace can be loaded with stated dependencies ... OK * checking whether the namespace can be unloaded cleanly ... OK * checking loading without being on the library search path ... OK * checking use of S3 registration ... OK * checking dependencies in R code ... OK * checking S3 generic/method consistency ... OK * checking replacement functions ... OK * checking foreign function calls ... OK * checking R code for possible problems ... [12s/15s] OK * checking Rd files ... OK * checking Rd metadata ... OK * checking Rd line widths ... OK * checking Rd cross-references ... OK * checking for missing documentation entries ... OK * checking for code/documentation mismatches ... OK * checking Rd \usage sections ... OK * checking Rd contents ... OK * checking for unstated dependencies in examples ... OK * checking line endings in C/C++/Fortran sources/headers ... OK * checking line endings in Makefiles ... OK * checking compilation flags in Makevars ... OK * checking for GNU extensions in Makefiles ... OK * checking for portable use of $(BLAS_LIBS) and $(LAPACK_LIBS) ... OK * checking use of PKG_*FLAGS in Makefiles ... OK * checking use of SHLIB_OPENMP_*FLAGS in Makefiles ... OK * checking pragmas in C/C++ headers and code ... OK * checking compilation flags used ... OK * checking compiled code ... OK * checking installed files from ‘inst/doc’ ... OK * checking files in ‘vignettes’ ... OK * checking examples ... OK * checking for unstated dependencies in ‘tests’ ... OK * checking tests ... Running ‘testthat.R’ [13s/13s] [13s/14s] ERROR 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 * checking for unstated dependencies in vignettes ... OK * checking package vignettes in ‘inst/doc’ ... OK * checking re-building of vignette outputs ... OK * checking PDF version of manual ... OK * checking for non-standard things in the check directory ... OK * checking for detritus in the temp directory ... OK * DONE Status: 1 ERROR, 1 WARNING See ‘/data/gannet/ripley/R/packages/tests-gcc10/rray.Rcheck/00check.log’ for details. Command exited with non-zero status 1 Time 5:18.88, 688.82 + 39.91