tests/testthat/admixtools_presence.R

context("Presence of ADMIXTOOLS on the system")

test_that("ADMIXTOOLS is present", {
  skip_on_cran()
  skip_on_os("windows")
  expect_true(admixtools_present())
})

test_that("ADMIXTOOLS data is present", {
  skip_on_cran()
  skip_on_os("windows")
  expect_true(dir.exists(file.path(admixtools_path(), "data")))
})

Try the admixr package in your browser

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

admixr documentation built on July 8, 2020, 6:19 p.m.