tests/testthat/test-as-html.R

test_that("as_html returns htmltools tag", {
  ht <- hux(a = 1:2, b = 3:4)
  tag <- as_html(ht)
  expect_s3_class(tag, "html")
  expect_identical(as.character(tag), to_html(ht))
})

Try the huxtable package in your browser

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

huxtable documentation built on Aug. 19, 2025, 1:12 a.m.