Running ‘run-all.R’
Running the tests in ‘tests/run-all.R’ failed.
Complete output:
  > library(testthat)
  > library(benford.analysis)
  > test_check("benford.analysis")
  ── 1. Error: Corporate Payment 1 digit, only >=10 (@test-benford.R#8)  ─────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(cp, 1) at testthat/test-benford.R:8
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 2. Error: Corporate Payment 2 digits, only >=10 (@test-benford.R#22)  ───────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(cp, 2) at testthat/test-benford.R:22
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 3. Error: Census 2009 data, 2 digits, only >=10 (@test-benford.R#43)  ───────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(pop, 2) at testthat/test-benford.R:43
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 4. Error: Negative numbers, simulated log-normal *(-1) (@test-benford.R#57)  
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(data, sign = "negative") at testthat/test-benford.R:57
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 5. Error: Both signs, simulated log-normal and plots (@test-benford.R#76)  ──
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(data, sign = "both", discrete = FALSE) at testthat/test-benford.R:76
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 6. Error: Regular printing -- no comparisons (@test-benford.R#121)  ─────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(data, sign = "both", discrete = FALSE) at testthat/test-benford.R:121
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ── 7. Error: Get functions are working (@test-get.R#7)  ────────────────────────
  SETLENGTH() cannot be applied to an ALTVEC object.
  1: benford(sino.forest$value) at testthat/test-get.R:7
  2: generate.empirical.distribution(data, number.of.digits, sign, second.order = FALSE, 
         benford.digits)
  3: DF[, length(x) - 1, by = v]
  4: `[.data.table`(DF, , length(x) - 1, by = v)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  OK: 30 SKIPPED: 1 FAILED: 7
  1. Error: Corporate Payment 1 digit, only >=10 (@test-benford.R#8) 
  2. Error: Corporate Payment 2 digits, only >=10 (@test-benford.R#22) 
  3. Error: Census 2009 data, 2 digits, only >=10 (@test-benford.R#43) 
  4. Error: Negative numbers, simulated log-normal *(-1) (@test-benford.R#57) 
  5. Error: Both signs, simulated log-normal and plots (@test-benford.R#76) 
  6. Error: Regular printing -- no comparisons (@test-benford.R#121) 
  7. Error: Get functions are working (@test-get.R#7) 
  
  Error: testthat unit tests failed
  Execution halted