Running ‘testthat.R’ [4s/5s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(tabula)
  > 
  > test_check("tabula")
  ── 1. Error: matrix <> FrequencyMatrix (@test-coerce.R#24)  ────────────────────
  NA values were detected
  1: expect_s4_class(as(mtx_incid, "FrequencyMatrix"), "FrequencyMatrix") at testthat/test-coerce.R:24
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: as(mtx_incid, "FrequencyMatrix")
  5: asMethod(object)
  6: methods::new("FrequencyMatrix", freq, totals = totals)
  7: initialize(value, ...)
  8: initialize(value, ...)
  9: methods::callNextMethod(.Object, ...)
  10: eval(call, callEnv)
  11: eval(call, callEnv)
  12: .nextMethod(.Object, ...)
  13: initMatrix(.Object, ...)
  14: validObject(.Object)
  15: anyStrings(validityMethod(as(object, superClass)))
  16: isTRUE(x)
  17: validityMethod(as(object, superClass))
  18: stop(paste(errors, collapse = "\n"))
  
  ── 2. Error: data.frame <> FrequencyMatrix (@test-coerce.R#62)  ────────────────
  NA values were detected
  1: expect_s4_class(as(df_incid, "FrequencyMatrix"), "FrequencyMatrix") at testthat/test-coerce.R:62
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: as(df_incid, "FrequencyMatrix")
  5: asMethod(object)
  6: methods::new("FrequencyMatrix", freq, totals = totals)
  7: initialize(value, ...)
  8: initialize(value, ...)
  9: methods::callNextMethod(.Object, ...)
  10: eval(call, callEnv)
  11: eval(call, callEnv)
  12: .nextMethod(.Object, ...)
  13: initMatrix(.Object, ...)
  14: validObject(.Object)
  15: anyStrings(validityMethod(as(object, superClass)))
  16: isTRUE(x)
  17: validityMethod(as(object, superClass))
  18: stop(paste(errors, collapse = "\n"))
  
  ── 3. Error: *Matrix > FrequencyMatrix (@test-coerce.R#102)  ───────────────────
  NA values were detected
  1: expect_s4_class(as(incid, "FrequencyMatrix"), "FrequencyMatrix") at testthat/test-coerce.R:102
  2: quasi_label(enquo(object))
  3: eval_bare(get_expr(quo), get_env(quo))
  4: as(incid, "FrequencyMatrix")
  5: asMethod(object)
  6: methods::new("FrequencyMatrix", freq, totals = totals)
  7: initialize(value, ...)
  8: initialize(value, ...)
  9: methods::callNextMethod(.Object, ...)
  10: eval(call, callEnv)
  11: eval(call, callEnv)
  12: .nextMethod(.Object, ...)
  13: initMatrix(.Object, ...)
  14: validObject(.Object)
  15: anyStrings(validityMethod(as(object, superClass)))
  16: isTRUE(x)
  17: validityMethod(as(object, superClass))
  18: stop(paste(errors, collapse = "\n"))
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 222 SKIPPED: 0 FAILED: 3
  1. Error: matrix <> FrequencyMatrix (@test-coerce.R#24) 
  2. Error: data.frame <> FrequencyMatrix (@test-coerce.R#62) 
  3. Error: *Matrix > FrequencyMatrix (@test-coerce.R#102) 
  
  Error: testthat unit tests failed
  In addition: Warning messages:
  1: In library(testthat) : package 'testthat' already present in search()
  2: In library(testthat) : package 'testthat' already present in search()
  3: In library(testthat) : package 'testthat' already present in search()
  4: In library(testthat) : package 'testthat' already present in search()
  5: In library(testthat) : package 'testthat' already present in search()
  6: In library(testthat) : package 'testthat' already present in search()
  7: In library(testthat) : package 'testthat' already present in search()
  Execution halted