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))
# })

Try the aphylo package in your browser

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

aphylo documentation built on April 4, 2025, 2:18 a.m.