tests/testthat/test-r8s.R

context("r8s")

file <- system.file("extdata/r8s", "H3_r8s_output.log", package="treeio")
r8s <- read.r8s(file)

test_that("parsing r8s log file", {
    expect_true(all(c("TREE", "RATO", "PHYLO") %in% names(r8s)))
    expect_true(is(r8s, "multiPhylo"))
})

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.