test_that("missing html", {
html_file <- "test.html"
expect_error(
object = protect_html(password = 1234)
)
})
test_that("missing password", {
html_file <- "test.html"
expect_error(
object = protect_html(html = html_file)
)
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.