Nothing
test_that("nll works, 1 site", {
# setup parallel processing for test
cl = parallel::makeCluster(2)
parallel::setDefaultCluster(cl=cl)
doParallel::registerDoParallel(cl)
nit = matrix(anmu[1,], nrow=1)
expect_error(nll(par = c(1,1,0,0), nit = nit, K = 10))
expect_error(nll(par = c(1,1,0,0), nit = nit, K = 100), NA)
# stop parallel processing
parallel::stopCluster(cl)
})
test_that("nll works, 2 site", {
# setup parallel processing for test
cl = parallel::makeCluster(2)
parallel::setDefaultCluster(cl=cl)
doParallel::registerDoParallel(cl)
nit = anmu[1:2,]
expect_error(nll(par = c(1,1,0,0), nit = nit, K = 100))
expect_error(nll(par = c(1,1,0,0), nit = nit, K = 140), NA)
# stop parallel processing
parallel::stopCluster(cl)
})
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.