Running ‘tests.R’
Running the tests in ‘tests/tests.R’ failed.
Complete output:
  > library(lvec)
  
  Attaching package: 'lvec'
  
  The following object is masked from 'package:base':
  
      order
  
  > library(testthat)
  > 
  > test_check("lvec")
  1. Error: numeric vectors are assigned using lset (@test_assignment_logical.R#23) 
  Value too large for defined data type
  1: test_assignment(a_r, logical(0), numeric(0)) at testthat/test_assignment_logical.R:23
  2: lset(a, index, values) at testthat/test_assignment_logical.R:5
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  2. Error: integer vectors are assigned using lset (@test_assignment_logical.R#41) 
  Value too large for defined data type
  1: test_assignment(a_r, logical(0), integer(0)) at testthat/test_assignment_logical.R:41
  2: lset(a, index, values) at testthat/test_assignment_logical.R:5
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  3. Error: logical vectors are assigned using lset (@test_assignment_logical.R#61) 
  Invalid argument
  1: test_assignment(a_r, logical(0), logical(0)) at testthat/test_assignment_logical.R:61
  2: lset(a, index, values) at testthat/test_assignment_logical.R:5
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  4. Error: character vectors are assigned using lset (@test_assignment_logical.R#79) 
  Invalid argument
  1: test_assignment(a_r, logical(0), character(0)) at testthat/test_assignment_logical.R:79
  2: lset(a, index, values) at testthat/test_assignment_logical.R:5
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  5. Error: numeric vectors are assigned using lset (@test_assignment_numeric.R#28) 
  Invalid argument
  1: test_assignment(a_r, numeric(0), numeric(0)) at testthat/test_assignment_numeric.R:28
  2: lset(a, index, values) at testthat/test_assignment_numeric.R:6
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  6. Error: integer vectors are assigned using lset (@test_assignment_numeric.R#61) 
  Invalid argument
  1: test_assignment(a_r, numeric(0), numeric(0)) at testthat/test_assignment_numeric.R:61
  2: lset(a, index, values) at testthat/test_assignment_numeric.R:6
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  7. Error: logical vectors are assigned using lset (@test_assignment_numeric.R#88) 
  Invalid argument
  1: test_assignment(a_r, numeric(0), logical(0)) at testthat/test_assignment_numeric.R:88
  2: lset(a, index, values) at testthat/test_assignment_numeric.R:6
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  8. Error: character vectors are assigned using lset (@test_assignment_numeric.R#114) 
  Invalid argument
  1: test_assignment(a_r, numeric(0), character(0)) at testthat/test_assignment_numeric.R:114
  2: lset(a, index, values) at testthat/test_assignment_numeric.R:6
  3: lset.lvec(a, index, values)
  4: as_lvec(values)
  
  9. Error: chunk does what it is supposed to do (@test_chunk.R#14) --------------
  Invalid argument
  1: chunk(as_lvec(numeric(0))) at testthat/test_chunk.R:14
  2: as_lvec(numeric(0))
  
  10. Error: numeric vectors are correctly cloned (@test_clone.R#15) -------------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_clone.R:15
  
  11. Error: integer vectors are correctly cloned (@test_clone.R#32) -------------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_clone.R:32
  
  12. Error: logical vectors are correctly cloned (@test_clone.R#49) -------------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_clone.R:49
  
  13. Error: character vectors are correctly cloned (@test_clone.R#66) -----------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_clone.R:66
  
  14. Error: numeric vectors are correctly indexed using lget (@test_indexing_logical.R#12) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, c(FALSE))), equals(a_r[c(FALSE)])) at testthat/test_indexing_logical.R:12
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, c(FALSE)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, c(FALSE))
  9: lget.lvec(a, c(FALSE))
  
  15. Error: integer vectors are correctly indexed using lget (@test_indexing_logical.R#27) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, c(FALSE))), equals(a_r[c(FALSE)])) at testthat/test_indexing_logical.R:27
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, c(FALSE)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, c(FALSE))
  9: lget.lvec(a, c(FALSE))
  
  16. Error: logical vectors are correctly indexed using lget (@test_indexing_logical.R#42) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, c(FALSE))), equals(a_r[c(FALSE)])) at testthat/test_indexing_logical.R:42
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, c(FALSE)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, c(FALSE))
  9: lget.lvec(a, c(FALSE))
  
  17. Error: character vectors are correctly indexed using lget (@test_indexing_logical.R#58) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, c(FALSE))), equals(a_r[c(FALSE)])) at testthat/test_indexing_logical.R:58
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, c(FALSE)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, c(FALSE))
  9: lget.lvec(a, c(FALSE))
  
  18. Error: numeric vectors are correctly indexed using lget (@test_indexing_numeric.R#15) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, numeric(0))), equals(a_r[numeric(0)])) at testthat/test_indexing_numeric.R:15
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, numeric(0)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, numeric(0))
  9: lget.lvec(a, numeric(0))
  10: as_lvec(index)
  
  19. Error: integer vectors are correctly indexed using lget (@test_indexing_numeric.R#34) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, numeric(0))), equals(a_r[numeric(0)])) at testthat/test_indexing_numeric.R:34
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, numeric(0)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, numeric(0))
  9: lget.lvec(a, numeric(0))
  10: as_lvec(index)
  
  20. Error: logical vectors are correctly indexed using lget (@test_indexing_numeric.R#53) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, numeric(0))), equals(a_r[numeric(0)])) at testthat/test_indexing_numeric.R:53
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, numeric(0)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, numeric(0))
  9: lget.lvec(a, numeric(0))
  10: as_lvec(index)
  
  21. Error: character vectors are correctly indexed using lget (@test_indexing_numeric.R#73) 
  Invalid argument
  1: expect_that(as_rvec(lget(a, numeric(0))), equals(a_r[numeric(0)])) at testthat/test_indexing_numeric.R:73
  2: condition(object)
  3: expect_equal(x, expected, ..., expected.label = label)
  4: compare(object, expected, ...)
  5: as_rvec(lget(a, numeric(0)))
  6: is_lvec(x)
  7: inherits(x, "lvec")
  8: lget(a, numeric(0))
  9: lget.lvec(a, numeric(0))
  10: as_lvec(index)
  
  22. Error: getting of length works (@test_length.R#8) --------------------------
  Invalid argument
  1: lvec(0, "integer") at testthat/test_length.R:8
  
  23. Error: order of numeric vectors is correctly calculated (@test_order.R#16) -
  Invalid argument
  1: as_lvec(a_r) at testthat/test_order.R:16
  
  24. Error: order of integer vectors is correctly calculated (@test_order.R#32) -
  Invalid argument
  1: as_lvec(a_r) at testthat/test_order.R:32
  
  25. Error: order of logical vectors is correctly calculated (@test_order.R#48) -
  Invalid argument
  1: as_lvec(a_r) at testthat/test_order.R:48
  
  26. Error: order of character vectors is correctly calculated (@test_order.R#69) 
  Invalid argument
  1: as_lvec(a_r) at testthat/test_order.R:69
  
  27. Error: numeric vectors are correctly sorted (@test_sorting.R#26) -----------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_sorting.R:26
  
  28. Error: integer vectors are correctly sorted (@test_sorting.R#52) -----------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_sorting.R:52
  
  29. Error: logical vectors are correctly sorted (@test_sorting.R#78) -----------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_sorting.R:78
  
  30. Error: character vectors are correctly sorted (@test_sorting.R#104) --------
  Invalid argument
  1: as_lvec(a_r) at testthat/test_sorting.R:104
  
  testthat results ================================================================
  OK: 274 SKIPPED: 0 FAILED: 30
  1. Error: numeric vectors are assigned using lset (@test_assignment_logical.R#23) 
  2. Error: integer vectors are assigned using lset (@test_assignment_logical.R#41) 
  3. Error: logical vectors are assigned using lset (@test_assignment_logical.R#61) 
  4. Error: character vectors are assigned using lset (@test_assignment_logical.R#79) 
  5. Error: numeric vectors are assigned using lset (@test_assignment_numeric.R#28) 
  6. Error: integer vectors are assigned using lset (@test_assignment_numeric.R#61) 
  7. Error: logical vectors are assigned using lset (@test_assignment_numeric.R#88) 
  8. Error: character vectors are assigned using lset (@test_assignment_numeric.R#114) 
  9. Error: chunk does what it is supposed to do (@test_chunk.R#14) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted