tests/testthat/test-random_OR.R

library(metagear)
context("Is the random_OR function ok?")


test_that("returns specified number of randoms", {

  aDataTable <- random_OR(5, 0.3, 100, 0.1, 60)
  expect_equal(dim(aDataTable), c(5, 2))
})

Try the metagear package in your browser

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

metagear documentation built on Feb. 15, 2021, 5:09 p.m.