tests/testthat/test-as_ranked.r

test_that("a phylo is converted to ranked tree", {
    expect_silent(ape::rcoal(5) |> as_ranked() |> rrnni:::validate_rankedPhylo())

    # a particular potentially problematic example:
    expect_silent(read_newick("(t5:4,(t2:1,t4:1):3);") |> rrnni:::validate_rankedPhylo())
    })

Try the rrnni package in your browser

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

rrnni documentation built on Aug. 25, 2023, 5:16 p.m.