tests/testthat/test-options.R

context("setting cabinet options")

test_that("options can be set", {
    cabinets_options_set("cabinets.permission" = FALSE)
    expect_false(getOption("cabinets.permission"))
})

Try the cabinets package in your browser

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

cabinets documentation built on Nov. 8, 2020, 4:32 p.m.