context("Prior Function")
test_that("Prior Function", {
dp <- DirichletProcessGaussian(rnorm(100))
priorF <- PriorFunction(dp)
expect_is(priorF, "function")
expect_is(priorF(0), "numeric")
})
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.