tests/testthat/test-unused.R

context("unused")

test_that("check_unused errors", {
  fun <- function(...) check_unused(...)
  expect_null(fun())
  expect_error(fun(1), "... must be unused")
})

Try the checkr package in your browser

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

checkr documentation built on May 1, 2019, 6:59 p.m.