tests/testthat/test_Closed.R

context("Closed")

test_that("markClosed",{
  expect_error(markClosed(Enc.Mat=simdataClosed(delta_1=1,delta_2=0)$Enc.Mat,iter=10,burnin=0,bin=5),NA)
})

test_that("multimarkClosed",{
  expect_error(multimarkClosed(Enc.Mat=bobcat,data.type="never",iter=10,burnin=0,bin=5),NA)
  expect_error(getprobsClosed(multimarkClosed(Enc.Mat=bobcat,data.type="never",iter=10,burnin=0,bin=5)),NA)
  
  setup<-processdata(bobcat)
  expect_error(test.dot<-multimarkClosed(mms=setup,parms="all",iter=10,burnin=0,bin=5),NA)
  expect_error(multimodelClosed(modlist=list(mod1=test.dot,mod2=test.dot)),NA)
})

Try the multimark package in your browser

Any scripts or data that you put into this service are public.

multimark documentation built on March 31, 2023, 9:33 p.m.