Running ‘tests.R’
Running the tests in ‘tests/tests.R’ failed.
Complete output:
  > library(ldat)
  Loading required package: lvec
  
  Attaching package: 'lvec'
  
  The following object is masked from 'package:base':
  
      order
  
  
  Attaching package: 'ldat'
  
  The following objects are masked from 'package:base':
  
      append, match, table, which
  
  > library(testthat)
  > 
  > test_check("ldat")
  1. Error: match works for numeric vectors (@test_match.R#38) -------------------
  Value too large for defined data type
  1: match(as_lvec(x), y) at testthat/test_match.R:38
  2: match.lvec(as_lvec(x), y)
  3: structure(.Call("lmatch", PACKAGE = "ldat", x, ox, table, otable, na_incomparable), 
         class = "lvec")
  
  2. Error: match works for integer vectors (@test_match.R#80) -------------------
  Value too large for defined data type
  1: match(as_lvec(x), y) at testthat/test_match.R:80
  2: match.lvec(as_lvec(x), y)
  3: structure(.Call("lmatch", PACKAGE = "ldat", x, ox, table, otable, na_incomparable), 
         class = "lvec")
  
  3. Error: match works for logical vectors (@test_match.R#123) ------------------
  Value too large for defined data type
  1: match(as_lvec(x), y) at testthat/test_match.R:123
  2: match.lvec(as_lvec(x), y)
  3: structure(.Call("lmatch", PACKAGE = "ldat", x, ox, table, otable, na_incomparable), 
         class = "lvec")
  
  4. Error: match works for character vectors (@test_match.R#165) ----------------
  Invalid argument
  1: match(as_lvec(x), y) at testthat/test_match.R:165
  2: match.lvec(as_lvec(x), y)
  3: structure(.Call("lmatch", PACKAGE = "ldat", x, ox, table, otable, na_incomparable), 
         class = "lvec")
  
  testthat results ================================================================
  OK: 354 SKIPPED: 0 FAILED: 4
  1. Error: match works for numeric vectors (@test_match.R#38) 
  2. Error: match works for integer vectors (@test_match.R#80) 
  3. Error: match works for logical vectors (@test_match.R#123) 
  4. Error: match works for character vectors (@test_match.R#165) 
  
  Error: testthat unit tests failed
  Execution halted