tests/testthat/test_popgenome.R

check_popgenome <- function() {
    if (!requireNamespace("PopGenome", quietly = TRUE)) {
        skip("PopGenome package not available")
    }
}

if (requireNamespace("PopGenome", quietly = TRUE))
    library("PopGenome")

fn <- system.file("extdata", "popgenome.rda", package = "manticore")
load(fn)

context("Test PopGenome methods")

test_that("parsing slide data is ok", {
    check_popgenome()
    wselist <- PopGenome(slides)

})
percyfal/nonmodelr documentation built on Sept. 11, 2019, 10:38 a.m.