From https://r-pkgs.org/tests.html
usethis::use_testthat()
test_that("a_function ....", { expect_that(a_) })
Whenever you are tempted to type something into a print statement or a debugger expression, write it as a test instead. — Martin Fowler
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.