tests/testthat/test_check_input.R

test_that('checkX', {
  expect_error(checkX(x = c('aaa', 2)))
})

test_that('checkSingleNum', {
  expect_error(checkSingleNum(z = c('aaa', 2), lower = 3, inclusive = TRUE))
})

test_that('checkTime', {
  expect_error(checkTime(x = c('aaa', 2)))
})

Try the spectr package in your browser

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

spectr documentation built on Feb. 7, 2022, 5:06 p.m.