tests/testthat/test-call_chunk_shiny.R

test_that("Shiny specific function call chunks return an empty Repro object", {
  validate_call <- str2lang("validate(is.data.frame(iris))")
  class(validate_call) <- c("validate", class(validate_call))

  validate_repro <- repro_call_chunk(validate_call)
  expect_identical(validate_repro, Repro())
})

Try the shinyreprex package in your browser

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

shinyreprex documentation built on April 27, 2026, 9:10 a.m.