tests/testthat/test.htrain.R

library(hicrep)
context("htrain")

test_that("htrain() returns integer that is in the specified range", {
  
    data(HiCR1)
    data(HiCR2)
    h_hat <- htrain(HiCR1, HiCR2, 1000000, 5000000, 0:2)
    
    expect_is(h_hat, "numeric")
    expect_gte(h_hat, 0)
    expect_lte(h_hat, 2)
})

Try the hicrep package in your browser

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

hicrep documentation built on April 28, 2020, 7:51 p.m.