if (requireNamespace("tinytest", quietly=TRUE)) {
## Set a seed to make the test deterministic
set.seed(42)
## there are several more granular ways to test files in a
## tinytest directory, see its package vignette; tests can also
## run once the package is installed using the same command
## we need version 0.9.4 or later
if (packageVersion("tinytest") >= "0.9.4") {
tinytest::test_package("RcppTOML")
}
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.