Running ‘testthat.R’ [24s/42s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(themetagenomics)
  Loading required package: Rcpp
  > 
  > test_check("themetagenomics")
  ── 1. Failure: prepare_data works with no formula (@test-prepare.R#11)  ────────
  list("matrix", NULL, NULL, NULL, NULL, NULL, NULL) not identical to c(class(x[[1]]), unname(x[2:7])).
  Length mismatch: comparison on first 7 components
  Component 2: target is NULL, current is character
  
  ── 2. Failure: prepare_data works with no formula (@test-prepare.R#17)  ────────
  list("matrix", NULL, NULL, NULL, NULL, NULL, NULL) not identical to c(class(x[[1]]), unname(x[2:7])).
  Length mismatch: comparison on first 7 components
  Component 2: target is NULL, current is character
  
  ── 3. Failure: prepare_data works with binary factor (@test-prepare.R#37)  ─────
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ── 4. Failure: prepare_data works with continuous covariate (@test-prepare.R#55)
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ── 5. Failure: prepare_data works with spline covariate (@test-prepare.R#73)  ──
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ── 6. Failure: prepare_data works with multiclass factor (@test-prepare.R#105)  
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ── 7. Failure: prepare_data works with multiclass factor and continuous (@test-p
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ── 8. Failure: prepare_data works with multiclass factor and spline (@test-prepa
  list(...) not identical to unname(lapply(x, class)).
  Component 1: Lengths (1, 2) differ (string compare on first 1)
  Component 2: Lengths (1, 2) differ (string compare on first 1)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 48 | SKIPPED: 4 | WARNINGS: 62 | FAILED: 8 ]
  1. Failure: prepare_data works with no formula (@test-prepare.R#11) 
  2. Failure: prepare_data works with no formula (@test-prepare.R#17) 
  3. Failure: prepare_data works with binary factor (@test-prepare.R#37) 
  4. Failure: prepare_data works with continuous covariate (@test-prepare.R#55) 
  5. Failure: prepare_data works with spline covariate (@test-prepare.R#73) 
  6. Failure: prepare_data works with multiclass factor (@test-prepare.R#105) 
  7. Failure: prepare_data works with multiclass factor and continuous (@test-prepare.R#123) 
  8. Failure: prepare_data works with multiclass factor and spline (@test-prepare.R#151) 
  
  Error: testthat unit tests failed
  Execution halted