Running ‘spelling.R’ [0s/1s]
  Running ‘testthat.R’ [2s/3s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(yatah)
  > 
  > test_check("yatah")
  ── 1. Error: special characters are handled correclty in taxtree (@test-spec-chr
  attempt to select less than one element in integerOneIndex
  Backtrace:
   1. testthat::expect_equal(...)
   4. yatah::taxtree(tabl_spec2)
   6. ape::write.tree(tree)
   7. ape:::.write.tree2(...)
  
  ── 2. Error: taxtree() give the right format (@test-taxtree.R#11)  ─────────────
  attempt to select less than one element in integerOneIndex
  Backtrace:
   1. testthat::expect_is(taxtree(taxtable), "phylo")
   4. yatah::taxtree(taxtable)
   6. ape::write.tree(tree)
   7. ape:::.write.tree2(...)
  
  ── 3. Error: taxtree() is independant from the row orderand duplicated rows  (@t
  attempt to select less than one element in integerOneIndex
  Backtrace:
   1. testthat::expect_equal(taxtree(taxtable[3:1, ]), taxtree(taxtable))
   4. yatah::taxtree(taxtable[3:1, ])
   6. ape::write.tree(tree)
   7. ape:::.write.tree2(...)
  
  ── 4. Error: options are correct (@test-taxtree.R#28)  ─────────────────────────
  attempt to select less than one element in integerOneIndex
  Backtrace:
   1. testthat::expect_equal(...)
   4. yatah::taxtree(taxtable, root = "X")
   6. ape::write.tree(tree)
   7. ape:::.write.tree2(...)
  
  ── 5. Error: improper taxonomic tables are correcly handled (@test-taxtree.R#41)
  attempt to select less than one element in integerOneIndex
  Backtrace:
   1. testthat::expect_equal(taxtree(taxtable2), taxtree(taxtable))
   4. yatah::taxtree(taxtable2)
   6. ape::write.tree(tree)
   7. ape:::.write.tree2(...)
  
  ══ testthat results  ═══════════════════════════════════════════════════════════
  [ OK: 65 | SKIPPED: 0 | WARNINGS: 15 | FAILED: 5 ]
  1. Error: special characters are handled correclty in taxtree (@test-spec-chr.R#61) 
  2. Error: taxtree() give the right format (@test-taxtree.R#11) 
  3. Error: taxtree() is independant from the row orderand duplicated rows  (@test-taxtree.R#17) 
  4. Error: options are correct (@test-taxtree.R#28) 
  5. Error: improper taxonomic tables are correcly handled (@test-taxtree.R#41) 
  
  Error: testthat unit tests failed
  Execution halted