tests/testthat/test-conversion.R

context('converting tree object')

phy <- rtree(30)
p <- ggtree::ggtree(phy)

test_that('tree object conversion', {
    expect_true(is(as.phylo(p), "phylo"))
    expect_true(is(as.treedata(p), "treedata"))
})

Try the treeio package in your browser

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

treeio documentation built on Nov. 21, 2020, 2:01 a.m.