tests/testthat/test-knit_print.R

test_that("knit_print.data.frame default to print without error", {
  df <- data.frame(a = 10)
  expect_error(knit_print.data.frame(df, inline = TRUE), NA)
})

Try the rmarkdown package in your browser

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

rmarkdown documentation built on Nov. 4, 2024, 5:06 p.m.