inst/tinytest/test-panther.r

# context("Read panther")

# test_that("Reading panther data works", {
  path <- system.file("tree.tree", package="aphylo")
  ans  <- read_panther(path)
  
  expect_equal(class(ans$tree), "phylo")
  expect_equal(nrow(ans$internal_nodes_annotations), Nnode(ans$tree))
# })
USCbiostats/aphylo documentation built on Oct. 28, 2023, 7:22 a.m.