tests/testthat/test_ipcaps.R

context("test clustering.mode")

test_that("test clustering.mode",{

  BED.file <- system.file("extdata","ipcaps_example.bed",package="IPCAPS")
  LABEL.file <- system.file("extdata","ipcaps_example_individuals.txt.gz",package="IPCAPS")

  res <- ipcaps(bed=BED.file,label.file=LABEL.file,lab.col=2,out=tempdir())

  expect_type(res, "list")
  expect_length(res, 2)

  unlink(res$output.dir, recursive = TRUE)
})

Try the IPCAPS package in your browser

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

IPCAPS documentation built on Jan. 26, 2021, 1:06 a.m.