tests/testthat/test-monophyly.prop.R

# Test Start ###
test_that("class testing on output",{
  library(ape)
  tree<-ape::rtree(20)
  tree$tip.label<-sample(tree$tip.label[1:10],size=20,replace = TRUE)
  sppVector<-tree$tip.label

  expect_equal(length(monophyly.prop(tree,sppVector,singletonsMono=F)),4)
})

Try the NicheBarcoding package in your browser

Any scripts or data that you put into this service are public.

NicheBarcoding documentation built on Dec. 21, 2021, 9:07 a.m.