tests/testthat/test-throws-MinLenVectors.R

test_that("throws when vectors are smaller than minimum length", {
  te <- c()
  tt <- c()
  ce <- c()
  ct <- c()
  expect_error(rema(te, tt, ce, ct), min.len.err)

  te <- c(1)
  tt <- c(2)
  ce <- c(3)
  ct <- c(4)
  expect_error(rema(te, tt, ce, ct), min.len.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.