Nothing
context("Check inputs of cubicbs routine")
# Check that lower < upper
test_that("lower bound is smaller than upper bound", {
expect_error(
cubicbs(x=runif(20,0,1), lower=5, upper=2, K=20)
)
})
# Check error when K<=3
test_that("K not large enough", {
expect_error(
cubicbs(x=runif(20,0,1), lower=0, upper=2, K=3)
)
})
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.