Nothing
test_that("simulate is a method of stats::simulate", {
x <- model_ab1(length = 30)
expect_identical(simulate, stats::simulate)
s1 <- simulate(x, model_size = 20, seed = 3)
expect_length(s1, 20)
expect_true(all(s1 %in% ab))
expect_identical(simulate(x, model_size = 20, seed = 3), s1)
several <- simulate(x, nsim = 3, model_size = 10)
expect_length(several, 3)
expect_true(all(lengths(several) == 10))
})
test_that("the former positional call still works, with a warning", {
x <- model_ab1(length = 30)
f <- tempfile(fileext = ".fa")
expect_warning(s <- simulate(x, f, 15), "deprecated")
expect_length(s, 15)
expect_true(file.exists(f))
})
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.