Running ‘testthat.R’ [10s/11s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library("testthat")
  > 
  > library("arules")
  Loading required package: Matrix
  
  Attaching package: 'arules'
  
  The following objects are masked from 'package:base':
  
      abbreviate, write
  
  > test_check("arules")
  ── 1. Error: (unknown) (@test-apriori.R#17)  ───────────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::as(data, "transactions")
    2. arules:::asMethod(object)
   10. methods::as(from, "itemMatrix")
   11. arules:::asMethod(object)
   12. methods::new(...)
   14. Matrix:::initialize(value, ...)
   16. methods:::.nextMethod(.Object = .Object, ... = ...)
   17. methods::validObject(.Object)
  
  ── 2. Error: (unknown) (@test-interestMeasures.R#16)  ──────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::as(data, "transactions")
    2. arules:::asMethod(object)
   10. methods::as(from, "itemMatrix")
   11. arules:::asMethod(object)
   12. methods::new(...)
   14. Matrix:::initialize(value, ...)
   16. methods:::.nextMethod(.Object = .Object, ... = ...)
   17. methods::validObject(.Object)
  
  ── 3. Error: (unknown) (@test-read_write.R#19)  ────────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. arules::read.transactions(...)
    2. methods::as(data, "transactions")
    3. arules:::asMethod(object)
   11. methods::as(from, "itemMatrix")
   12. arules:::asMethod(object)
   13. methods::new(...)
   15. Matrix:::initialize(value, ...)
   17. methods:::.nextMethod(.Object = .Object, ... = ...)
   18. methods::validObject(.Object)
  
  ── 4. Error: (unknown) (@test-ruleInduction.R#15)  ─────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::as(data, "transactions")
    2. arules:::asMethod(object)
   10. methods::as(from, "itemMatrix")
   11. arules:::asMethod(object)
   12. methods::new(...)
   14. Matrix:::initialize(value, ...)
   16. methods:::.nextMethod(.Object = .Object, ... = ...)
   17. methods::validObject(.Object)
  
  ── 5. Error: (unknown) (@test-sets.R#16)  ──────────────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::new("itemsets", items = as(data, "itemMatrix"))
    6. methods::as(data, "itemMatrix")
    7. arules:::asMethod(object)
    8. methods::new(...)
   10. Matrix:::initialize(value, ...)
   12. methods:::.nextMethod(.Object = .Object, ... = ...)
   13. methods::validObject(.Object)
  
  ── 6. Error: (unknown) (@test-tidLists.R#22)  ──────────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::as(data, "transactions")
    2. arules:::asMethod(object)
   10. methods::as(from, "itemMatrix")
   11. arules:::asMethod(object)
   12. methods::new(...)
   14. Matrix:::initialize(value, ...)
   16. methods:::.nextMethod(.Object = .Object, ... = ...)
   17. methods::validObject(.Object)
  
  ── 7. Error: (unknown) (@test-transactions.R#21)  ──────────────────────────────
  invalid class "ngCMatrix" object: invalid object for slot "i" in class "ngCMatrix": got class "logical", should be or extend class "integer"
  Backtrace:
    1. methods::as(data, "transactions")
    2. arules:::asMethod(object)
   10. methods::as(from, "itemMatrix")
   11. arules:::asMethod(object)
   12. methods::new(...)
   14. Matrix:::initialize(value, ...)
   16. methods:::.nextMethod(.Object = .Object, ... = ...)
   17. methods::validObject(.Object)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 131 | SKIPPED: 0 | WARNINGS: 7 | FAILED: 7 ]
  1. Error: (unknown) (@test-apriori.R#17) 
  2. Error: (unknown) (@test-interestMeasures.R#16) 
  3. Error: (unknown) (@test-read_write.R#19) 
  4. Error: (unknown) (@test-ruleInduction.R#15) 
  5. Error: (unknown) (@test-sets.R#16) 
  6. Error: (unknown) (@test-tidLists.R#22) 
  7. Error: (unknown) (@test-transactions.R#21) 
  
  Error: testthat unit tests failed
  Execution halted