tests/testthat/test-errors.R

test_that("quarto error", {
  skip_if_no_quarto()

  test_script("render_error.R") |>
    run(summary_file = NULL) |>
    expect_error(
      regexp = "object 'params' not found"
    )
})

Try the whirl package in your browser

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

whirl documentation built on Oct. 25, 2026, 9:06 a.m.