tests/testthat/test_one_obs.R

context("ashr with 1 data sample")

test_that("ash works with one observation", {
  expect_error(ash(1,1),NA) #tests for no error
}
)

Try the ashr package in your browser

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

ashr documentation built on Aug. 22, 2023, 1:07 a.m.