Nothing
test_that("table works", {
# Test table with sorting and pagination enabled
table_check <- govReactable(
df = shinyGovstyle::transport_data,
right_col = c("colours", "bikes", "cars", "vans", "buses"),
page_size = 5
)
# Ensure the function runs without errors
expect_no_error(table_check)
# Take snapshot of table HTML
output_html <- htmltools::renderTags(table_check)$html
# Prevent unnecessary changes due to random IDs
stripped_ids <- gsub('"htmlwidget-[^"]*"', "", output_html)
expect_snapshot(stripped_ids)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.