if (requireNamespace("testthat", quietly = TRUE)) {
library(testthat)
library(smerc)
test_check("smerc")
} else {
message("tests could not be run because testthat is not installed")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.