tests/testthat/test-throws-RemaObjDistError.R

test_that("throws when a rema object is given without distribution", {
  rema.obj.no.dist <- c(1, 2)
  class(rema.obj.no.dist) <- "rema"
  expect_error(rema(rema.obj = rema.obj.no.dist, rema.obj.dist.err))
})

Try the rema package in your browser

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

rema documentation built on Oct. 29, 2021, 1:07 a.m.