tests/testthat/test-random_d.R

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


test_that("returns specified number of randoms", {

  aDataTable <- random_d(30, 10, 0.5, 15, 5, 0.5, 15)
  expect_equal(dim(aDataTable), c(30, 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.