library(testthat)
library(shinymodels)
test_that("can format hover correctly", {
expect_equal(length(format_hover(mtcars)), 32)
expect_equal(is.character(format_hover(mtcars)), TRUE)
expect_snapshot(
error = TRUE,
format_hover()
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.