tests/testthat/test-errors.R

context("Errors")

test_that("Arguments must be named", {

  expect_error(
    set_config("foo" = "bar", "foobar"),
    "Some parameters are not named"
  )
})

Try the pkgconfig package in your browser

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

pkgconfig documentation built on Sept. 22, 2019, 5:05 p.m.