tests/testthat/test-simgamdata.R

context("Check inputs of simgamdata routine")

# Check setting is either 1 or 2

test_that("Wrong setting", {
  expect_error(
    simgamdata(setting = 0, n = 150, dist = "poisson", scale = 0.3)
  )
})

Try the blapsr package in your browser

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

blapsr documentation built on Aug. 20, 2022, 5:05 p.m.