Running ‘test-all.R’ [29s/40s]
Running the tests in ‘tests/test-all.R’ failed.
Complete output:
  > library(testthat)
  > test_check("FSA")
  Loading required package: FSA
  ## FSA v0.8.27. See citation('FSA') if used in publication.
  ## Run fishR() for related website and fishR('IFAR') for related book.
  ── 1. Failure: Does psdAdd() create correct Gabelhouse categories? (@testthat_PS
  df2$gcatn not equivalent to df2$GCATN.
  'current' is not a factor
  
  ── 2. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(3, 11)].
  Component "f1": 'current' is not a factor
  
  ── 3. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(11)].
  Component "f1": 'current' is not a factor
  
  ── 4. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(3)].
  Component "f1": 'current' is not a factor
  
  ── 5. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to `exp`.
  Component "f1": 'current' is not a factor
  
  ── 6. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(3)].
  Component "f1": 'current' is not a factor
  
  ── 7. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(3, 11)].
  Component "f1": 'current' is not a factor
  
  ── 8. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to exp[, -c(11)].
  Component "f1": 'current' is not a factor
  
  ── 9. Failure: Summarize() results, quantitative variable by single factor (@tes
  `tmp` not equal to `exp`.
  Component "f1": 'current' is not a factor
  
  ── 10. Failure: Summarize() results, quantitative variable by single factor (@te
  `tmp` not equal to `exp`.
  Component "f1": 'current' is not a factor
  
  ── 11. Failure: Summarize() results, quantitative variable by single factor (@te
  `tmp` not equal to exp[, -c(3, 11)].
  Component "f1": 'current' is not a factor
  
  ── 12. Failure: Summarize() results, quantitative variable by single factor (@te
  `tmp` not equal to exp[, -c(11)].
  Component "f1": 'current' is not a factor
  
  ── 13. Failure: Summarize() results, quantitative variable by single factor (@te
  `tmp` not equal to exp[, -c(3)].
  Component "f1": 'current' is not a factor
  
  ── 14. Failure: Summarize() results, quantitative variable by two factors (@test
  `tmp` not equal to exp[, -c(4, 12)].
  Component "f2": 'current' is not a factor
  Component "f1": 'current' is not a factor
  
  ── 15. Failure: Summarize() results, quantitative variable by two factors (@test
  `tmp` not equal to exp[, -c(12)].
  Component "f2": 'current' is not a factor
  Component "f1": 'current' is not a factor
  
  ── 16. Failure: Summarize() results, quantitative variable by two factors (@test
  `tmp` not equal to exp[, -c(4)].
  Component "f2": 'current' is not a factor
  Component "f1": 'current' is not a factor
  
  ── 17. Failure: Summarize() results, quantitative variable by two factors (@test
  `tmp` not equal to `exp`.
  Component "f2": 'current' is not a factor
  Component "f1": 'current' is not a factor
  
  ── 18. Failure: Summarize() results using exclude= (@testthat_Summarize.R#200)  
  `tmp` not equal to exp[, -c(3, 11)].
  Component "f1": 'current' is not a factor
  
  ── 19. Failure: Check dunnTest() output labels (@testthat_dunnTest.R#64)  ──────
  any(grepl("1", levels(tmp2$res$Comparison))) isn't true.
  
  ── 20. Failure: Check dunnTest() output labels (@testthat_dunnTest.R#65)  ──────
  any(grepl("2", levels(tmp2$res$Comparison))) isn't true.
  
  ── 21. Failure: Check dunnTest() output labels (@testthat_dunnTest.R#66)  ──────
  any(grepl("4", levels(tmp2$res$Comparison))) isn't true.
  
  ── 22. Error: Does ksTest() match ks.test() (@testthat_ksTest.R#48)  ───────────
  `ksTest` only works if the RHS variable has two levels.
  Backtrace:
   1. FSA::ksTest(dat ~ grp, data = df)
   2. FSA:::ksTest.formula(dat ~ grp, data = df)
   3. FSA:::STOP("`ksTest` only works if the RHS variable has two levels.")
  
  ── 23. Error: Does ksTest() match ks.test() (@testthat_ksTest.R#71)  ───────────
  `ksTest` only works if the RHS variable has two levels.
  Backtrace:
   1. FSA::ksTest(dat ~ grp, data = df)
   2. FSA:::ksTest.formula(dat ~ grp, data = df)
   3. FSA:::STOP("`ksTest` only works if the RHS variable has two levels.")
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 3644 | SKIPPED: 0 | WARNINGS: 0 | FAILED: 23 ]
  1. Failure: Does psdAdd() create correct Gabelhouse categories? (@testthat_PSD.R#415) 
  2. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#121) 
  3. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#123) 
  4. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#125) 
  5. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#127) 
  6. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#136) 
  7. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#138) 
  8. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#140) 
  9. Failure: Summarize() results, quantitative variable by single factor (@testthat_Summarize.R#142) 
  1. ...
  
  Error: testthat unit tests failed
  Execution halted