tests/testthat/test-chunk-opts.r

context("Chunk Options")

test_that("Bad chunk options fail.", {
  expect_error(listdown(readRDS(file.path("reference-data", 
                                          "option-check.rds")),
               package = "knitr",
               decorators = list(data.frame = kable),
               bunk = letters))
})

Try the listdown package in your browser

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

listdown documentation built on April 3, 2023, 5:42 p.m.