tests/testthat/test_readbed.R

context("Read PLINK format")

test_that("Read BED file",{

  bed <- system.file("extdata", "example_SNP.bed", package="KRIS")
  bim <- system.file("extdata", "example_SNP.bim", package="KRIS")
  fam <- system.file("extdata", "example_SNP.fam", package="KRIS")
  snp <- read.bed(bed, bim, fam )

  expect_length(ls(snp), 3)
  expect_type(ls(snp), "character")
})

Try the KRIS package in your browser

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

KRIS documentation built on Jan. 21, 2021, 5:08 p.m.