tests/testthat/test-recast.R

test_that("the number of holes is checked", {
  ORR <- recast(MOZ, TPL, Niter = 100)
  HG <- have_gaps(ORR[[1]])
  wg <- paste0(stringr::str_extract(HG$ore, "\\*.+\\*"), collapse="")
  expect_equal(ORR[[2]], stringr::str_count(wg, "-"))
})

Try the refitgaps package in your browser

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

refitgaps documentation built on June 8, 2025, 11:35 a.m.