require("testthat")
require("DiceKriging")
if (list.files(pattern="tests-opt")=="tests-opt") {
source(file.path("tests-opt","utils.R"))
test_dir(path="tests-opt")
} else if (list.files(pattern="utils.R")=="utils.R") {
source("utils.R")
test_dir(path=".")
} else {
stop("Launch test from package root directory or package/test directory")
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.